CMap::Unload
function · terrain · host
- Address
0x694920· 70 bytes, up to0x694965- Signature
void __cdecl (void)- Meaning
- Frees map objects, footprints and texture caches, updates the map with synchronous reads, waits, sets the loaded flag
- Confidence
- verified, proof one
- Finding
- collision/teleport#forced-position-reload
Finding: Forced position reload in collision: teleport arrival
A forced position op that moves the mover more than 30 yards, when the mover is the unit the world view is anchored to, reloads the destination's terrain synchronously before the frame
goes on. After the snap 0x617e90 calls 0x630bd0 when d² > 900, with the mover's GUID; 0x630bd0 compares it with the world view's GUID (+0x88, +0x8c of 0x4818f0) and calls 0x66fc80,
which recentres the streaming windows and runs 0x694920. That frees the map objects, footprints and texture caches, updates the map once through 0x698390 with the synchronous-open flag
0x86a2d0 set and waits for every read. 0x615020 then calls 0x613ef0(object, 1) on every object. No loading screen is raised.
The derivation is in the doc.
Callers 1
- CWorld::UnloadAreas terrain
Callees 7
- AsyncFileReadWaitAll client
- 0x449000 gx
- FreeTextureCaches gx
- CMap::Update terrain
- DestroyFootprints terrain
- MapObjReleaseAll models
- MapObjWalkTiles models
Calls and jumps by a bare address, from tables/calls.tsv.