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

Function ExplosionSmallTick

src/effectvehicle.cpp:225–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225static bool ExplosionSmallTick(EffectVehicle *v)
226{
227 v->progress++;
228 if ((v->progress & 3) == 0) {
229 if (!IncrementSprite(v, SPR_EXPLOSION_SMALL_B)) {
230 delete v;
231 return false;
232 }
233 v->UpdatePositionAndViewport();
234 }
235
236 return true;
237}
238
239static void BulldozerInit(EffectVehicle *v)
240{

Callers

nothing calls this directly

Calls 2

IncrementSpriteFunction · 0.85

Tested by

no test coverage detected