summaryrefslogtreecommitdiff
path: root/tunnelbridge_cmd.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-06-02 21:03:59 +0000
committercelestar <celestar@openttd.org>2006-06-02 21:03:59 +0000
commite530e53564ef91787879a1b22d45dcaabf61f021 (patch)
tree8dbcf37fe787583cdd7aae1dcbac6d2a4d2feb21 /tunnelbridge_cmd.c
parent01aecb8416c7f49a764085afcdf300315636121c (diff)
downloadopenttd-e530e53564ef91787879a1b22d45dcaabf61f021.tar.xz
(svn r5081) -Fix: Could not build bridges over crossings (but crossings under bridges were possible), noticed by WhiteRabbit
Diffstat (limited to 'tunnelbridge_cmd.c')
-rw-r--r--tunnelbridge_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c
index 2ffb77db1..a0db5468b 100644
--- a/tunnelbridge_cmd.c
+++ b/tunnelbridge_cmd.c
@@ -344,7 +344,7 @@ int32 CmdBuildBridge(TileIndex end_tile, uint32 flags, uint32 p1, uint32 p2)
break;
case MP_STREET:
- if (GetRoadTileType(tile) != ROAD_TILE_NORMAL) goto not_valid_below;
+ if (GetRoadTileType(tile) == ROAD_TILE_DEPOT) goto not_valid_below;
break;
case MP_TUNNELBRIDGE: