1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-24 20:54:08 +01:00

Codechange: Don't mark tiles dirty when deleting from animated tile list.

The callers of DeleteAnimatedTile already know if the tile needs refreshing, so it is redundant for DeleteAnimatedTile to do so.

Loosely backported from JGRPP.
This commit is contained in:
Peter Nelson
2024-08-01 20:15:56 +01:00
committed by Peter Nelson
parent 88110e9b2e
commit 79369a886a
2 changed files with 3 additions and 3 deletions

View File

@@ -28,7 +28,6 @@ void DeleteAnimatedTile(TileIndex tile)
if (to_remove != _animated_tiles.end()) {
/* The order of the remaining elements must stay the same, otherwise the animation loop may miss a tile. */
_animated_tiles.erase(to_remove);
MarkTileDirtyByTile(tile);
}
}