mirror of https://github.com/OpenTTD/OpenTTD
Change: Don't try to flood buoys or dock tiles.
This reduces the active flooding water tiles a little more.pull/13036/head
parent
8f9836793f
commit
465df3bab1
|
@ -1259,6 +1259,9 @@ void TileLoop_Water(TileIndex tile)
|
||||||
/* do not try to flood water tiles - increases performance a lot */
|
/* do not try to flood water tiles - increases performance a lot */
|
||||||
if (IsTileType(dest, MP_WATER)) continue;
|
if (IsTileType(dest, MP_WATER)) continue;
|
||||||
|
|
||||||
|
/* Buoys and docks cannot be flooded, and when removed turn into flooding water. */
|
||||||
|
if (IsTileType(dest, MP_STATION) && (IsBuoy(dest) || IsDock(dest))) continue;
|
||||||
|
|
||||||
/* This neighbour tile might be floodable later if the tile is cleared, so allow flooding to continue. */
|
/* This neighbour tile might be floodable later if the tile is cleared, so allow flooding to continue. */
|
||||||
continue_flooding = true;
|
continue_flooding = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue