MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / Explosion_Func_SetRandomTimeout

Function Explosion_Func_SetRandomTimeout

src/explosion.c:231–234  ·  view source on GitHub ↗

* Set timeout for next the activity of \a e to a random value up to \a value. * @param e The Explosion to change. * @param value The maximum amount of timeout. */

Source from the content-addressed store, hash-verified

229 * @param value The maximum amount of timeout.
230 */
231static void Explosion_Func_SetRandomTimeout(Explosion *e, uint16 value)
232{
233 e->timeOut = g_timerGUI + Tools_RandomLCG_Range(0, value);
234}
235
236/**
237 * Set the SpriteID of the Explosion.

Callers 1

Explosion_TickFunction · 0.85

Calls 1

Tools_RandomLCG_RangeFunction · 0.85

Tested by

no test coverage detected