diff options
author | glx <glx@openttd.org> | 2007-05-27 01:03:59 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2007-05-27 01:03:59 +0000 |
commit | 39463156df1e6544cbfe76d8b5eeb38430a9a73f (patch) | |
tree | d03d65149752ad1ff56b21b257bd3d0cfa37ab8a /src/station_cmd.cpp | |
parent | 0be092ec71c1533ced2910a015c6276ea36799ac (diff) | |
download | openttd-39463156df1e6544cbfe76d8b5eeb38430a9a73f.tar.xz |
(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
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index a5c53c2ac..b1b628bf9 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -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; |