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

Function zNPCHazard_ScenePrepare

src/SB/Game/zNPCHazard.cpp:61–81  ·  view source on GitHub ↗

WIP.

Source from the content-addressed store, hash-verified

59
60// WIP.
61void zNPCHazard_ScenePrepare()
62{
63 memset(g_hazards, 0, sizeof(g_hazards));
64 g_cnt_activehaz = 0;
65 for (S32 i = 0; i < 27; i++)
66 {
67 g_haz_uvAnimQue[i] = NULL;
68 }
69 for (S32 i = 0; i < 30; i++)
70 {
71 g_haz_uvAnimInfo[i].Clear();
72 }
73 for (S32 i = 0; i < 30; i++)
74 {
75 g_haz_animTable[i] = NULL;
76 }
77 for (S32 i = 0; i < 30; i++)
78 {
79 g_hazard_rawModel[i] = NULL;
80 }
81}
82
83void zNPCHazard_SceneReset()
84{

Callers 1

NPCSupport_ScenePrepareFunction · 0.70

Calls 2

memsetFunction · 0.85
ClearMethod · 0.45

Tested by

no test coverage detected