benilla-re systems structs docs

s_lightSnap

global · terrain

Address
0xc62954 · 4 bytes, up to 0xc62957
Type
uint32_t
Meaning
Holds 1 after a forced reload so the light update snaps instead of blending, cleared each frame
Confidence
verified, proof one
Finding
terrain/mapupdate#forced-reload

Finding: Forced reload in terrain: map update

0x66fc80(position) reloads the map around a position and waits for it. It recomputes the two windows (0x672730), copies the outer one to 0xc7b2e4 to 0xc7b2f0 and runs 0x694920: the pending work, the map object cache and the footprint rings are cleared, then, with the synchronous read flag 0x86a2d0 on, one full update pass 0x698390(0) loads what the windows hold, 0x443d30 waits for every pending read, the flag goes off and the light snap flag 0xc62954 is set. Four callers reach it: 0x48eed3, 0x48f118, 0x5f54d4 and 0x630bf3, the last when a forced move of more than 30 yards belongs to the unit the camera follows.

The derivation is in the doc.