benilla-re systems structs docs

BuildTaxiLegTable

function · loadingscreen · orchestration

Address
0x408000 · 479 bytes, up to 0x4081de
Signature
void __cdecl (void)
Meaning
Builds the per-path leg lists and stop pairs from the TaxiPathNode store, then the tile arrays
Confidence
verified, proof one
Finding
loadingscreen/route#taxi-leg-table

Finding: Taxi leg table in loadingscreen: route

At startup 0x408000 builds the per-path leg table from the TaxiPathNode store, one outer entry for every taxi path id up to the TaxiPath store's highest. Walking the nodes in order, a node with flag 2 records its id as the run's last stop, and as its first stop when the run has none; a node with flag 1, or the first node on a new continent within a path, closes the run: it appends the pair (first stop, last stop) to the pair array and the pair's index to the path's leg list, and clears the first stop. A change of path closes a run that has a first stop, in the path before it.

The derivation is in the doc.

Callers 1

Callees 7

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