mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r8620) -Fix: buoys on canal tiles do not flood anymore (Maedhros).
This commit is contained in:
parent
d95a872579
commit
5666d8d727
|
@ -661,8 +661,8 @@ void TileLoop_Water(TileIndex tile)
|
||||||
{{ 0, -1}, {0, 0}, {1, 0}, { 0, -1}, { 1, -1}}
|
{{ 0, -1}, {0, 0}, {1, 0}, { 0, -1}, { 1, -1}}
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Ensure sea-level canals do not flood */
|
/* Ensure sea-level canals and buoys on canal borders do not flood */
|
||||||
if (IsTileType(tile, MP_WATER) && !IsTileOwner(tile, OWNER_WATER)) return;
|
if ((IsTileType(tile, MP_WATER) || IsBuoyTile(tile)) && !IsTileOwner(tile, OWNER_WATER)) return;
|
||||||
|
|
||||||
if (IS_INT_INSIDE(TileX(tile), 1, MapSizeX() - 3 + 1) &&
|
if (IS_INT_INSIDE(TileX(tile), 1, MapSizeX() - 3 + 1) &&
|
||||||
IS_INT_INSIDE(TileY(tile), 1, MapSizeY() - 3 + 1)) {
|
IS_INT_INSIDE(TileY(tile), 1, MapSizeY() - 3 + 1)) {
|
||||||
|
|
Loading…
Reference in New Issue