TileLodDistance
function · minimap · primitive
- Address
0x6d9e30· 152 bytes, up to0x6d9ec7- Signature
void * __fastcall (void *records, uint32_t group, const float *desc, float bias)- Meaning
- Finds the record of an interior tile and sets its distance; returns the record or 0
- Confidence
- verified, proof one
- Finding
- minimap/tiles#interior-tiles
- Test
minimap::blip_lod_distance_difftest
Finding: Interior tiles in minimap: tiles
LoadInteriorTile(records, group, desc, bias, nameBuf) loads one tile of the interior descriptor desc: it claims a free record, builds the name from the world name and the descriptor (desc[0] the group index, desc[1] and desc[2] the grid indices), replaces the record's texture, stores the
key and the six bounding floats, and sets the distance: unbounded for the player's own group, otherwise the middle of the vertical extent less the bias. TileLodDistance(records, group, desc, bias) does the last step for a tile that is already loaded and returns its record, or 0.
ClearTileKeys sets the key word of all 512 records to −1. ClaimTileSlot returns the first record without mask 0x2, with it set, or 0.
The derivation is in the doc.
Callers 1
- UpdateMinimap minimap
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.