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

Function Firework_Timestep

src/SB/Game/zNPCSupport.cpp:819–839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

817}
818
819void Firework_Timestep(F32 dt)
820{
821 for (int i = 0; i < 32; i++)
822 {
823 if (g_fireworks[i].fwstate != FW_STAT_UNUSED)
824 {
825 if ((g_fireworks[i].fwstate != FW_STAT_READY) && (g_fireworks[i].flg_firework & 4))
826 {
827 if (g_fireworks[i].fwstate == FW_STAT_DONE)
828 {
829 Firework_Release(&g_fireworks[i]);
830 }
831 else
832 {
833 g_fireworks[i].Update(dt);
834 g_fireworks[i].flg_firework &= ~2;
835 }
836 }
837 }
838 }
839}
840
841S32 NPCC_LampStatus()
842{

Callers 1

NPCSupport_TimestepFunction · 0.70

Calls 2

Firework_ReleaseFunction · 0.85
UpdateMethod · 0.45

Tested by

no test coverage detected