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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user