(svn r11395) -Fix: allow town-bridges to be build on slopes (Rafal Rzepecki)

This commit is contained in:
truelight
2007-11-09 11:20:36 +00:00
parent 3e8493c851
commit 71f443cbdc
2 changed files with 20 additions and 18 deletions

View File

@@ -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;