mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 09:29:10 +00:00
Fix: part of a tile might not be marked dirty upon terraforming
This commit is contained in:
@@ -310,7 +310,7 @@ CommandCost CmdTerraformLand(TileIndex tile, DoCommandFlag flags, uint32 p1, uin
|
||||
/* Mark affected areas dirty. */
|
||||
for (TileIndexSet::const_iterator it = ts.dirty_tiles.begin(); it != ts.dirty_tiles.end(); it++) {
|
||||
MarkTileDirtyByTile(*it);
|
||||
TileIndexToHeightMap::const_iterator new_height = ts.tile_to_new_height.find(tile);
|
||||
TileIndexToHeightMap::const_iterator new_height = ts.tile_to_new_height.find(*it);
|
||||
if (new_height == ts.tile_to_new_height.end()) continue;
|
||||
MarkTileDirtyByTile(*it, 0, new_height->second);
|
||||
}
|
||||
|
Reference in New Issue
Block a user