benilla-re systems structs docs

NormalizeTaxiPoint

function · ui · primitive

Address
0x4dc890 · 50 bytes, up to 0x4dc8c1
Signature
void __fastcall (float *out, const float *rect, const float *pos)
Meaning
Maps a world point into map u and v using the rect's own spans
Confidence
verified, proof one
Finding
ui/taxi#map-art-and-positions
Test
ui::geo_4dc890

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 0

None by a direct call or jump.

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