Don't mark tile dirty when setting animation frame to its current value
See: https://github.com/OpenTTD/OpenTTD/issues/10192
This commit is contained in:
@@ -70,9 +70,9 @@ static void UpdateAnimatedTileSpeed(TileIndex tile, AnimatedTileInfo &info)
|
||||
* on that table yet). Also increases the size of the table if necessary.
|
||||
* @param tile the tile to make animated
|
||||
*/
|
||||
void AddAnimatedTile(TileIndex tile)
|
||||
void AddAnimatedTile(TileIndex tile, bool mark_dirty)
|
||||
{
|
||||
MarkTileDirtyByTile(tile, VMDF_NOT_MAP_MODE);
|
||||
if (mark_dirty) MarkTileDirtyByTile(tile, VMDF_NOT_MAP_MODE);
|
||||
AnimatedTileInfo &info = _animated_tiles[tile];
|
||||
UpdateAnimatedTileSpeed(tile, info);
|
||||
info.pending_deletion = false;
|
||||
|
Reference in New Issue
Block a user