benilla-re systems structs docs

LightListGrowStep

function · lighting · primitive

Address
0x6d6b30 · 57 bytes, up to 0x6d6b68
Meaning
Returns the largest power of two at most a count, or 64 for 64 and more
Confidence
verified, proof one
Finding
lighting/tables#per-map-light-list

Finding: Per-map light list in lighting: tables

Entering a map builds the light list 0xce98d8 from the Light records whose map column is the map id. Slot 0 is the map's record at position (0, 0, 0); the other records follow from slot 1 in table order. Without a record at the origin, slot 0 is the Light record with id 1, or null when the largest id is below 1. The list never holds fewer than one slot.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.