Index: water_cmd.cpp
===================================================================
--- water_cmd.cpp (revision 27222)
+++ water_cmd.cpp (working copy)
@@ -109,7 +109,7 @@
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 (IsBridgeAbove(tile) || IsBridgeAbove(tile2)) return_cmd_error(STR_ERROR_MUST_DEMOLISH_BRIDGE_FIRST);
if (!IsTileFlat(tile) || !IsTileFlat(tile2)) {
/* Prevent depots on rapids */
@@ -288,9 +288,9 @@
return_cmd_error(STR_ERROR_LAND_SLOPED_IN_WRONG_DIRECTION);
}
- if (IsBridgeAbove(tile) || IsBridgeAbove(tile - delta) || IsBridgeAbove(tile + delta)) {
- return_cmd_error(STR_ERROR_MUST_DEMOLISH_BRIDGE_FIRST);
- }
+ // if (IsBridgeAbove(tile) || IsBridgeAbove(tile - delta) || IsBridgeAbove(tile + delta)) {
+ // return_cmd_error(STR_ERROR_MUST_DEMOLISH_BRIDGE_FIRST);
+ // }
if (flags & DC_EXEC) {
/* Update company infrastructure counts. */
@@ -859,10 +859,12 @@
case WATER_TILE_LOCK:
DrawWaterLock(ti);
+ DrawBridgeMiddle(ti);
break;
case WATER_TILE_DEPOT:
DrawWaterDepot(ti);
+ DrawBridgeMiddle(ti);
break;
}
}