1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-15 16:32:41 +01:00

Fix 6a07f28103: Clearing animated tiles may lead to invalid state. (#13192)

This commit is contained in:
Peter Nelson
2024-12-23 21:35:43 +00:00
committed by GitHub
parent 1cf3a2a726
commit b35284d3dd
3 changed files with 24 additions and 4 deletions

View File

@@ -530,7 +530,7 @@ void DrawFoundation(TileInfo *ti, Foundation f)
void DoClearSquare(TileIndex tile)
{
/* If the tile can have animation and we clear it, delete it from the animated tile list. */
if (MayAnimateTile(tile)) DeleteAnimatedTile(tile);
if (MayAnimateTile(tile)) DeleteAnimatedTile(tile, true);
bool remove = IsDockingTile(tile);
MakeClear(tile, CLEAR_GRASS, _generating_world ? 3 : 0);