benilla-re systems structs docs

InitMmInRangeArray

function · minimap · orchestration

Address
0x6d8b60 · 10 bytes, up to 0x6d8b69
Signature
void __cdecl (void)
Meaning
Runs 0x6d8b70 and registers the destructor 0x6d8ba0
Confidence
verified, proof one
Finding
minimap/overview#static-objects

Finding: Static objects in minimap: overview

The file builds twelve groups of static state with its own slots, each a slot function that calls a body and registers an exit destructor with _atexit. Four more slots store products of constants: the half tile width 0xceaa94 and the half tile height 0xceaa90 (533.3333 times 0.5, each from its own copy of the constant), and the map origins 0xceaa8c and 0xceaa88 (533.3333 times 64 times 0.5, which is 17066.666).

groupbodywhat it initializes
0x6d86e00x6d86f0the cached player position 0xceaa7c to 0xceaa84, zero
0x6d87300x6d8740the cached tile indices 0xceaa74 and 0xceaa78 of the window's first tile, zero
0x6d87700x6d8780the cached tile indices 0xceaa6c and 0xceaa70 of its last tile, zero
0x6d87b00x6d87c0the orientation matrix 0xceaa20, identity
0x6d88900x6d88a0the second matrix 0xcea9e0, identity
0x6d89700x6d8980the window bounds 0xcea9c4 to 0xcea9d8, zero
0x6d89e00x6d89f0the three static blip records, each built by 0x573ac0, and 0x6d8a20 destroys them with 0x573ad0
0x6d8a400x6d8a50the candidate array at 0xcea694, empty
0x6d8aa00x6d8ab0the flag array at 0xcea688, empty
0x6d8b000x6d8b10the flag array at 0xcea67c, empty
0x6d8b600x6d8b70the in-range array at 0xcea668, empty
0x6d8bc00x6d8bd0the catalog table 0xcea628 to 0xcea64c, empty

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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