MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / AnimateNewObjectTile

Function AnimateNewObjectTile

src/newgrf_object.cpp:553–559  ·  view source on GitHub ↗

* Handle the animation of the object tile. * @param tile The tile to animate. */

Source from the content-addressed store, hash-verified

551 * @param tile The tile to animate.
552 */
553void 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
561static bool DoTriggerObjectTileAnimation(Object *o, TileIndex tile, ObjectAnimationTrigger trigger, const ObjectSpec *spec, uint32_t random, uint32_t var18_extra = 0)
562{

Callers 1

AnimateTile_ObjectFunction · 0.85

Calls 2

AnimateTileFunction · 0.85
TestMethod · 0.80

Tested by

no test coverage detected