summaryrefslogtreecommitdiff
path: root/src/tunnelbridge_cmd.cpp
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-11-09 11:20:36 +0000
committertruelight <truelight@openttd.org>2007-11-09 11:20:36 +0000
commit71f443cbdc78fb806da2b069e316e08df9ec6015 (patch)
tree12f45587236438b68102fe83b4600510d013d39e /src/tunnelbridge_cmd.cpp
parent3e8493c851fc8555483e8ff713b5274ef0fe6463 (diff)
downloadopenttd-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.cpp3
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;