Cache animated tile speed, use btree map for animated tiles

This commit is contained in:
Jonathan G Rennison
2020-11-24 19:02:38 +00:00
parent 72a7ae25e8
commit 2ad446369d
23 changed files with 267 additions and 56 deletions

View File

@@ -432,6 +432,14 @@ static Foundation GetFoundation_Town(TileIndex tile, Slope tileh)
return FlatteningFoundation(tileh);
}
uint8 GetAnimatedTileSpeed_Town(TileIndex tile)
{
if (GetHouseType(tile) >= NEW_HOUSE_OFFSET) {
return GetNewHouseTileAnimationSpeed(tile);
}
return 2;
}
/**
* Animate a tile for a town
* Only certain houses can be animated