From 465df3bab1a5ceccfbd53ef57eafd02c7c507033 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Sat, 19 Oct 2024 22:37:38 +0100 Subject: [PATCH] Change: Don't try to flood buoys or dock tiles. This reduces the active flooding water tiles a little more. --- src/water_cmd.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp index 2691ee3b2f..88a8fc9360 100644 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -1259,6 +1259,9 @@ void TileLoop_Water(TileIndex tile) /* do not try to flood water tiles - increases performance a lot */ 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. */ continue_flooding = true;