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 | 367f71e3538907a2f82cb6767bd512d0523541ab (patch) | |
tree | 63a2f82705f1713680a62f75ac4cd53582e6b5d6 | |
parent | 2363e37a25c8209500c6594c64d7ad29543ec4be (diff) | |
download | openttd-367f71e3538907a2f82cb6767bd512d0523541ab.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)) { |