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

Function DoTriggerObjectTileAnimation

src/newgrf_object.cpp:561–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559}
560
561static bool DoTriggerObjectTileAnimation(Object *o, TileIndex tile, ObjectAnimationTrigger trigger, const ObjectSpec *spec, uint32_t random, uint32_t var18_extra = 0)
562{
563 if (!spec->animation.triggers.Test(trigger)) return false;
564
565 ObjectAnimationBase::ChangeAnimationFrame(CBID_OBJECT_ANIMATION_TRIGGER, spec, o, tile, random, to_underlying(trigger) | var18_extra);
566 return true;
567}
568
569/**
570 * Trigger the update of animation on a single tile.

Callers 2

TriggerObjectAnimationFunction · 0.85

Calls 2

to_underlyingFunction · 0.85
TestMethod · 0.80

Tested by

no test coverage detected