Add: Accessor to test if a tile may be animated.
This commit is contained in:
committed by
Peter Nelson
parent
3a310f1802
commit
be505ec459
@@ -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 (_tile_type_procs[GetTileType(tile)]->animate_tile_proc != nullptr) DeleteAnimatedTile(tile);
|
||||
if (MayAnimateTile(tile)) DeleteAnimatedTile(tile);
|
||||
|
||||
bool remove = IsDockingTile(tile);
|
||||
MakeClear(tile, CLEAR_GRASS, _generating_world ? 3 : 0);
|
||||
|
||||
Reference in New Issue
Block a user