* Handle the animation of the object tile. * @param tile The tile to animate. */
| 551 | * @param tile The tile to animate. |
| 552 | */ |
| 553 | void AnimateNewObjectTile(TileIndex tile) |
| 554 | { |
| 555 | const ObjectSpec *spec = ObjectSpec::GetByTile(tile); |
| 556 | if (spec == nullptr || !spec->flags.Test(ObjectFlag::Animation)) return; |
| 557 | |
| 558 | ObjectAnimationBase::AnimateTile(spec, Object::GetByTile(tile), tile, spec->flags.Test(ObjectFlag::AnimRandomBits)); |
| 559 | } |
| 560 | |
| 561 | static bool DoTriggerObjectTileAnimation(Object *o, TileIndex tile, ObjectAnimationTrigger trigger, const ObjectSpec *spec, uint32_t random, uint32_t var18_extra = 0) |
| 562 | { |
no test coverage detected