Change: Store water tile flooding state in the map.
This allows water tiles which cannot flood any further to not even try to flood. On a large map with lots of water tiles this can noticeably reduce game loop processing time. Mostly ported from JGRPP.
This commit is contained in:
committed by
Peter Nelson
parent
4cd46e54aa
commit
8f9836793f
@@ -505,6 +505,7 @@ CommandCost CmdBuildBuoy(DoCommandFlag flags, TileIndex tile)
|
||||
MakeBuoy(tile, wp->index, GetWaterClass(tile));
|
||||
CheckForDockingTile(tile);
|
||||
MarkTileDirtyByTile(tile);
|
||||
ClearNeighbourNonFloodingStates(tile);
|
||||
|
||||
wp->UpdateVirtCoord();
|
||||
InvalidateWindowData(WC_WAYPOINT_VIEW, wp->index);
|
||||
|
||||
Reference in New Issue
Block a user