File diff r16028:f7cfe78e8c66 → r16029:740ab9f744c6
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;
 
				}