diff options
author | truelight <truelight@openttd.org> | 2007-11-09 11:20:36 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-11-09 11:20:36 +0000 |
commit | 71f443cbdc78fb806da2b069e316e08df9ec6015 (patch) | |
tree | 12f45587236438b68102fe83b4600510d013d39e /src/tunnelbridge_cmd.cpp | |
parent | 3e8493c851fc8555483e8ff713b5274ef0fe6463 (diff) | |
download | openttd-71f443cbdc78fb806da2b069e316e08df9ec6015.tar.xz |
(svn r11395) -Fix: allow town-bridges to be build on slopes (Rafal Rzepecki)
Diffstat (limited to 'src/tunnelbridge_cmd.cpp')
-rw-r--r-- | src/tunnelbridge_cmd.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp index 7eb6ec8d6..1145913e2 100644 --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -258,9 +258,8 @@ CommandCost CmdBuildBridge(TileIndex end_tile, uint32 flags, uint32 p1, uint32 p if (z_start != z_end) return_cmd_error(STR_BRIDGEHEADS_NOT_SAME_HEIGHT); - /* Towns are not allowed to use bridges on slopes. */ allow_on_slopes = (!_is_old_ai_player - && _current_player != OWNER_TOWN && _patches.build_on_slopes); + && _patches.build_on_slopes); TransportType transport_type = railtype == INVALID_RAILTYPE ? TRANSPORT_ROAD : TRANSPORT_RAIL; |