(svn r9951) -Fix: slope check was incomplete when building road over tram track (and vice-versa)

-Fix: you could build a drive-through station over a sloped road/tram track
This commit is contained in:
glx
2007-05-27 01:03:59 +00:00
parent 0be092ec71
commit 39463156df
2 changed files with 3 additions and 4 deletions

View File

@@ -1279,10 +1279,9 @@ int32 CmdBuildRoadStop(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
/* Do not remove roadtypes! */
rts |= cur_rts;
} else {
cost = CheckFlatLandBelow(tile, 1, 1, flags, is_drive_through ? 5 << p1 : 1 << p1, NULL);
if (CmdFailed(cost)) return cost;
}
cost = CheckFlatLandBelow(tile, 1, 1, flags, is_drive_through ? 5 << p1 : 1 << p1, NULL);
if (CmdFailed(cost)) return cost;
Station *st = NULL;