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

Function TriggerObjectTileAnimation

src/newgrf_object.cpp:576–579  ·  view source on GitHub ↗

* Trigger the update of animation on a single tile. * @param o The object that got triggered. * @param tile The location of the triggered tile. * @param trigger The trigger that is triggered. * @param spec The spec associated with the object. */

Source from the content-addressed store, hash-verified

574 * @param spec The spec associated with the object.
575 */
576bool TriggerObjectTileAnimation(Object *o, TileIndex tile, ObjectAnimationTrigger trigger, const ObjectSpec *spec)
577{
578 return DoTriggerObjectTileAnimation(o, tile, trigger, spec, Random());
579}
580
581/**
582 * Trigger the update of animation on a whole object.

Callers 1

TileLoop_ObjectFunction · 0.85

Calls 2

RandomFunction · 0.50

Tested by

no test coverage detected