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

Function zGridReset

src/SB/Game/zGrid.cpp:74–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void zGridReset(zScene* s)
75{
76 hack_flag_shadows(s);
77
78 for (U32 i = 0; i < s->num_ents; i++)
79 {
80 xBase* base = s->ents[i];
81 if (base && (base->baseFlags & 0x20))
82 {
83 if (base->baseType != eBaseTypeTrigger && base->baseType != eBaseTypeUI &&
84 base->baseType != eBaseTypeUIFont && base->baseType != eBaseTypePlayer)
85 {
86 xEnt* ent = (xEnt*)base;
87 if (ent->bupdate)
88 {
89 ent->bupdate(ent, (xVec3*)&ent->model->Mat->pos);
90 }
91 else
92 {
93 xEntDefaultBoundUpdate(ent, (xVec3*)&ent->model->Mat->pos);
94 }
95 zGridUpdateEnt(ent);
96 }
97 }
98 }
99}
100
101// WIP, the MIN/MAX stuff seem like they should be CLAMP
102// but the codegen is different. Also, there are a bunch

Callers 2

zGridInitFunction · 0.70
zSceneResetFunction · 0.70

Calls 3

hack_flag_shadowsFunction · 0.70
zGridUpdateEntFunction · 0.70
xEntDefaultBoundUpdateFunction · 0.50

Tested by

no test coverage detected