Changeset - r28567:6a9c0ba28f68
[Not reviewed]
master
0 1 0
Loïc Guilloux - 10 months ago 2024-01-25 22:18:26
glx22@users.noreply.github.com
Fix b38d3c2208: missing water regions invalidation when building locks (#11879)
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/water_cmd.cpp
Show inline comments
 
@@ -360,6 +360,8 @@ static CommandCost DoBuildLock(TileIndex
 
		MarkTileDirtyByTile(tile + delta);
 
		MarkCanalsAndRiversAroundDirty(tile - delta);
 
		MarkCanalsAndRiversAroundDirty(tile + delta);
 
		InvalidateWaterRegion(tile - delta);
 
		InvalidateWaterRegion(tile + delta);
 
	}
 
	cost.AddCost(_price[PR_BUILD_LOCK]);
 

	
0 comments (0 inline, 0 general)