CMapChunk::LinkNeighbours
function · terrain · orchestration
- Address
0x6c29c0· 358 bytes, up to0x6c2b25- Signature
void __thiscall (CMapChunk *this)- Meaning
- Links a chunk with its four neighbours, across area edges through the global area table
- Confidence
- verified, proof one
- Finding
- terrain/chunk#neighbour-links
Finding: Neighbour links in terrain: chunk
CMapChunk::LinkNeighbours (0x6c29c0) links the chunk to its four neighbours and they to it:
+0xc4 the chunk a row before, +0xc8 a column after, +0xcc a row after and +0xd0 a column before.
At an area's edge the neighbour comes from the adjacent area in the global 64×64 area table,
when that area is loaded; at the map's edge there is none.
The derivation is in the doc.
Callers 1
- CMapChunk::Load terrain
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.