benilla-re systems structs docs

SeedTaxiRoutes

function · ui · primitive

Address
0x4dc010 · 222 bytes, up to 0x4dc0ed
Signature
void __cdecl ()
Meaning
Starts the current node's route and relaxes every node it has a direct path to
Confidence
verified, proof one
Finding
ui/taxiroute#route-search

Finding: Route search in ui: taxi routes, fares and the flight

The seed 0x4dc010 gives the current node's slot (slot 0 when none matches) a fare of 0, one node, the route [current id], a length of 0 and the route flag, then relaxes every slot the current node has a direct path to. The relaxation 0x4dbce0(to, from, price) adds the length of the path between the two slots to the length at from. A slot keeps its first route; a later one replaces it only when strictly shorter. A replacement copies from's route plus the new id, adds price to the fare sum, takes from's node count plus 1, sets the route flag and relaxes every node to has a direct path to. Fares and hops do not count.

The derivation is in the doc.

Callers 1

Callees 3

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