summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-02-07 18:01:26 +0000
committerrubidium <rubidium@openttd.org>2007-02-07 18:01:26 +0000
commit022e11d4219c644d3c4fa79931ca0b839d9b07e2 (patch)
tree6f2dc521823534fb9c1ec10f59b10e1a8efb30f4
parent61c796b82500416a2909adb27d3bd84e185c6e21 (diff)
downloadopenttd-022e11d4219c644d3c4fa79931ca0b839d9b07e2.tar.xz
(svn r8620) -Fix: buoys on canal tiles do not flood anymore (Maedhros).
-rw-r--r--src/water_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp
index e7425df58..00f2fa934 100644
--- a/src/water_cmd.cpp
+++ b/src/water_cmd.cpp
@@ -661,8 +661,8 @@ void TileLoop_Water(TileIndex tile)
{{ 0, -1}, {0, 0}, {1, 0}, { 0, -1}, { 1, -1}}
};
- /* Ensure sea-level canals do not flood */
- if (IsTileType(tile, MP_WATER) && !IsTileOwner(tile, OWNER_WATER)) return;
+ /* Ensure sea-level canals and buoys on canal borders do not flood */
+ if ((IsTileType(tile, MP_WATER) || IsBuoyTile(tile)) && !IsTileOwner(tile, OWNER_WATER)) return;
if (IS_INT_INSIDE(TileX(tile), 1, MapSizeX() - 3 + 1) &&
IS_INT_INSIDE(TileY(tile), 1, MapSizeY() - 3 + 1)) {