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

@@ -133,4 +133,10 @@ struct AnimationBase {
* result are not empty, it is a sound effect. */
if (GB(callback, 8, 7) != 0 && _settings_client.sound.ambient) PlayTileSound(spec->grf_prop.grffile, GB(callback, 8, 7), tile);
}
static uint8 GetAnimationSpeed(const Tspec *spec)
{
if (HasBit(spec->callback_mask, Tbase::cbm_animation_speed)) return 0;
return spec->animation.speed;
}
};