benilla-re systems structs docs

UpdateMinimap

function · minimap · primitive

Address
0x6d93a0 · 1770 bytes, up to 0x6d9a89
Signature
uint8_t __fastcall (void *node, uint32_t map, const NTempest::C3Vector *pos, float *offset, float *scale, void *records, void *state, uint32_t flag)
Meaning
Runs the per-frame update: marker expiry, indoor state, interior window or outdoor tiles, and the blip pass
Confidence
verified, proof one
Finding
minimap/update#frame-update
Test
minimap::minimap_update_snap_difftest

Finding: Frame update in minimap: update

UpdateMinimap(node, map, position, offset, scale, records, state, flag) returns 1 when anything changed. It first expires the gossip marker (Gossip marker). When the player's position or the map differs from the cached one, it stores them and asks the node for the interior it is in (Indoor state). It then builds the interior window or, outdoors, prepares the tile block with WorldToScreenScale, when that happened or a change is pending in masks 0x1 and 0x2 of the dirty word 0xcea8bc. A pending change with no movement skips the store and the node query. Then it runs the blip pass PlaceBlips. With no change and the flag set, an outdoor frame still calls WorldToScreenScale for the offset and scale.

The derivation is in the doc.

Callers 1

Callees 20

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