Changeset - r16029:740ab9f744c6
[Not reviewed]
master
0 1 0
yexo - 14 years ago 2010-09-03 23:48:12
yexo@openttd.org
(svn r20732) -Fix: when trying to build a bridge over an object, try to autoremove the object if it's too high
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/tunnelbridge_cmd.cpp
Show inline comments
 
@@ -394,7 +394,7 @@ CommandCost CmdBuildBridge(TileIndex end
 
				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;
 
				}
 

	
0 comments (0 inline, 0 general)