MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / zShrapnel_Reset

Function zShrapnel_Reset

src/SB/Game/zShrapnel.cpp:248–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248void zShrapnel_Reset()
249{
250 if (sNumActiveFrags == 0)
251 return;
252
253 zFrag* frag = sProjectileList.next;
254 while (frag != NULL)
255 {
256 zFrag* next = frag->next;
257
258 if (frag->info.projectile.model != NULL)
259 {
260 xModelInstanceFree(frag->info.projectile.model);
261 }
262 zFrag_Free(frag);
263 frag = next;
264 }
265}
266
267void zShrapnel_Render()
268{

Callers 1

zSceneResetFunction · 0.70

Calls 2

zFrag_FreeFunction · 0.85
xModelInstanceFreeFunction · 0.50

Tested by

no test coverage detected