benilla-re systems structs docs

TeleportToNearestSafeLoc

function · ui · unreached

Address
0x4a76e0 · 385 bytes, up to 0x4a7860
Meaning
Sends opcode 8 for the WorldSafeLocs row nearest a map point, then signals CLOSE_WORLD_MAP
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 0

None by a direct call or jump.

Callees 8

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