Mercurial > hg > openttd
changeset 5954:8fc2e0451cdb draft
(svn r8620) -Fix: buoys on canal tiles do not flood anymore (Maedhros).
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 07 Feb 2007 18:01:26 +0000 |
parents | 81aac4ab6860 |
children | 1bc5a8fab0c9 |
files | src/water_cmd.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -661,8 +661,8 @@ {{ 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)) {