benilla-re systems structs docs

SortInteriorTiles

function · ui · primitive

Address
0x4ebeb0 · 108 bytes, up to 0x4ebf1b
Signature
void __thiscall (void *this)
Meaning
Links the drawable interior tile records into a list by ascending distance
Confidence
verified, proof one
Finding
minimap/draw#tile-order

Finding: Tile order in minimap: draw

0x4ebeb0 builds the list of interior tiles to draw. It scans the 512 records and keeps those with mask 0x2 of the flags word at +0x94 set and a non-zero texture handle at +0x90. It inserts each into a singly linked list, linked through +0x88, in ascending order of the distance at +0x8c, before the first node whose distance is not smaller. The head of the list is drawn first, so the tile of the player's own group, which has the distance 3.4028235e38, is drawn last and lies on top.

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.