Changeset - r16060:76d949a21564
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2010-09-07 19:20:15
frosch@openttd.org
(svn r20763) -Fix [FS#4113](r20749): The bridgetest on building shipdepots can no longer rely on being only called for clear water tiles.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/water_cmd.cpp
Show inline comments
 
@@ -104,7 +104,8 @@ CommandCost CmdBuildShipDepot(TileIndex 
 
		return_cmd_error(STR_ERROR_MUST_BE_BUILT_ON_WATER);
 
	}
 

	
 
	if (IsBridgeAbove(tile) || IsBridgeAbove(tile2)) return_cmd_error(STR_ERROR_MUST_DEMOLISH_BRIDGE_FIRST);
 
	if ((MayHaveBridgeAbove(tile) && IsBridgeAbove(tile)) ||
 
		(MayHaveBridgeAbove(tile2) && IsBridgeAbove(tile2))) return_cmd_error(STR_ERROR_MUST_DEMOLISH_BRIDGE_FIRST);
 

	
 
	if (GetTileSlope(tile, NULL) != SLOPE_FLAT || GetTileSlope(tile2, NULL) != SLOPE_FLAT) {
 
		/* Prevent depots on rapids */
0 comments (0 inline, 0 general)