diff options
author | peter1138 <peter1138@openttd.org> | 2006-06-30 20:16:14 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-06-30 20:16:14 +0000 |
commit | d0fcbf5b1a1a3ce7ed740ffcc4468867fd11abc7 (patch) | |
tree | 63a2f82705f1713680a62f75ac4cd53582e6b5d6 | |
parent | cbfdc35127f0e23a0d7b7b289ee526a0eda7ec22 (diff) | |
download | openttd-d0fcbf5b1a1a3ce7ed740ffcc4468867fd11abc7.tar.xz |
(svn r5435) Fix (r5406): Make sure sea-level canals below bridge tiles don't flood.
-rw-r--r-- | water_cmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/water_cmd.c b/water_cmd.c index 53c12daf4..ed1ad1807 100644 --- a/water_cmd.c +++ b/water_cmd.c @@ -654,7 +654,8 @@ void TileLoop_Water(TileIndex tile) }; /* Ensure sea-level canals do not flood */ - if (IsTileType(tile, MP_WATER) && !IsTileOwner(tile, OWNER_WATER)) return; + if ((IsTileType(tile, MP_WATER) || IsTileType(tile, MP_TUNNELBRIDGE)) && + !IsTileOwner(tile, OWNER_WATER)) return; if (IS_INT_INSIDE(TileX(tile), 1, MapSizeX() - 3 + 1) && IS_INT_INSIDE(TileY(tile), 1, MapSizeY() - 3 + 1)) { |