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

Function zLightUpdate

src/SB/Game/zLight.cpp:207–223  ·  view source on GitHub ↗

Float issue

Source from the content-addressed store, hash-verified

205
206// Float issue
207void zLightUpdate(xBase* to, xScene* param_2, F32 dt)
208{
209 _zLight* t = (_zLight*)to;
210
211 if (t->flags & 1 && t->attached_to)
212 {
213 xVec3 pos = *xEntGetPos((xEnt*)t->attached_to);
214 pos.y += 1.0f;
215 iLightSetPos(&t->light, &pos);
216 t->light.sph.center = pos;
217 t->true_idx = xPartitionUpdate(&sLightPart, t, t->true_idx, &pos);
218 }
219 if (sEffectFuncs[t->effect_idx])
220 {
221 sEffectFuncs[t->effect_idx](t, dt);
222 }
223}
224
225// Something is wrong with gNumTemporaryLights
226void zLightAddLocalEnv()

Callers 1

zSceneUpdateFunction · 0.70

Calls 3

xEntGetPosFunction · 0.85
iLightSetPosFunction · 0.50
xPartitionUpdateFunction · 0.50

Tested by

no test coverage detected