diff options
author | yexo <yexo@openttd.org> | 2010-09-03 23:48:12 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-09-03 23:48:12 +0000 |
commit | 2e054c19ada84dfa83bd7c11803a40c0bda78a55 (patch) | |
tree | 527ec111a12c1e02497e47962a9516cfe2326a09 /src | |
parent | 0decc3e09433dd480862dbe608c04fec26c00795 (diff) | |
download | openttd-2e054c19ada84dfa83bd7c11803a40c0bda78a55.tar.xz |
(svn r20732) -Fix: when trying to build a bridge over an object, try to autoremove the object if it's too high
Diffstat (limited to 'src')
-rw-r--r-- | src/tunnelbridge_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp index 773d91e82..fea58a6a5 100644 --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -394,7 +394,7 @@ CommandCost CmdBuildBridge(TileIndex end_tile, DoCommandFlag flags, uint32 p1, u case MP_OBJECT: { const ObjectSpec *spec = ObjectSpec::GetByTile(tile); if ((spec->flags & OBJECT_FLAG_ALLOW_UNDER_BRIDGE) == 0) goto not_valid_below; - if (GetTileMaxZ(tile) + spec->height * TILE_HEIGHT > z_start) return_cmd_error(STR_ERROR_OBJECT_IN_THE_WAY); + if (GetTileMaxZ(tile) + spec->height * TILE_HEIGHT > z_start) goto not_valid_below; break; } |