benilla-re systems structs docs

MapPointToWorld

function · ui · unreached

Address
0x4a7100 · 418 bytes, up to 0x4a72a1
Meaning
Converts a point of the selected map to a world position and map id, or answers 0
Confidence
verified, proof one
Finding
ui/worldmap#unreached-map-teleport

Finding: Unreached map teleport in ui: the world map

0x4a76e0(x, y) turns a point of the map into a world position with 0x4a7100, picks the WorldSafeLocs row on the same map whose position is nearest by squared distance, and sends opcode 8 with the clock, the row's map and position and a zero, the message the console command 0x404dc0 builds. It then signals CLOSE_WORLD_MAP (event 373). Nothing calls either function, so both are unreached.

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.