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

Function xFXFireworksLaunch

src/SB/Core/x/xFX.cpp:876–893  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

874 U32 counter = FIREWORK_COUNT;
875 _tagFirework* candidate = sFirework;
876 while (counter)
877 {
878 if (candidate->state == 0)
879 {
880 candidate->state = 1;
881 candidate->timer = time;
882 candidate->pos = *pos;
883 candidate->fuel = fuel;
884 return;
885 }
886 --counter;
887 ++candidate;
888 }
889}
890
891void xFXFireworksUpdate(F32 dt)
892{
893 for (S32 i = 0; i < FIREWORK_COUNT; ++i)
894 {
895 if (sFirework[i].state == 0)
896 {

Callers 1

CheckPickupAgainstPlayerFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected