benilla-re systems structs docs

FreeTaxiPathTables

function · ui · primitive

Address
0x4db5b0 · 117 bytes, up to 0x4db624
Signature
void __cdecl ()
Meaning
Empties the path point map and frees the taxi map state
Confidence
verified, proof one
Finding
ui/taxiroute#path-tables

Finding: Path tables in ui: taxi routes, fares and the flight

At game start 0x4db340 fills two tables. The path table holds, for a pair of node ids from 1 to 256, the TaxiPath row that runs from the first node to the second. The rows are walked from the last to the first, so when two rows share a pair the first in the file stays. The point runs come from TaxiPathNode: rows are 0x24 bytes, the path id at +4 and the point x, y and z at +0x10, +0x14 and +0x18. Consecutive rows with one path id form a run, kept in a map by path id as the first row and a count. TaxiPathExists(from, to) answers whether the table holds the pair.

The derivation is in the doc.

Callers 1

Callees 2

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