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

Function zLightResetAll

src/SB/Game/zLight.cpp:35–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void zLightResetAll(xEnv* env)
36{
37 memset(sLight, 0, sizeof(sLight));
38 sLightTotal = 0;
39
40 if (sPartitionVolume)
41 {
42 xPartitionVolume(&sLightPart, sPartitionVolume, 10, 1, 10);
43 }
44 else
45 {
46 xPartitionWorld(&sLightPart, env, 10, 1, 10);
47 }
48 xPartitionDump(&sLightPart, "Lighting");
49}
50
51void zLightInit(void* b, void* tasset)
52{

Callers 1

zEnvInitFunction · 0.85

Calls 4

memsetFunction · 0.85
xPartitionDumpFunction · 0.85
xPartitionVolumeFunction · 0.50
xPartitionWorldFunction · 0.50

Tested by

no test coverage detected