benilla-re systems structs docs

LoadTaxiMapTexture

function · ui · primitive

Address
0x4dbb10 · 192 bytes, up to 0x4dbbcf
Signature
bool __cdecl ()
Meaning
Loads the map texture of the current node's continent, keeping a held one of the same name
Confidence
verified, proof one
Finding
ui/taxi#map-art-and-positions

Finding: Map art and positions in ui: the taxi map

The map texture is the file Interface\TaxiFrame\TAXIMAP%d.blp with the continent id of the current node, formatted without a clamp. A held texture whose name matches, extension ignored and case ignored, is kept; otherwise it is closed and the file loaded. Because the rect search needs a WorldMapContinent row, only continents that have one reach the load. A node's map position is u = (highest y - y) / (highest x - lowest x) and v = (x - lowest x) / (highest y - lowest y), stored in the slot. The route points use the same numerators with each axis over its own span; both agree when the spans are equal.

The derivation is in the doc.

Callers 1

Callees 6

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