CompareWMOAreaKeys
function · unassigned · primitive
- Address
0x7ccdb0· 33 bytes, up to0x7ccdd0- Signature
int32_t __cdecl (const void *a, const void *b)- Meaning
- Compares two WMOAreaTable rows by WMO id, name set and group id, each by its wrapping difference
- Confidence
- verified, proof one
- Finding
- terrain/zones#wmoareatable-lookups
- Test
terrain::wmo_area_compare_difftest
Finding: WMOAreaTable lookups in terrain: zones
Both lookups binary-search the WMOAreaTable rows for an exact key of WMO id, name set and group
id, compared in that order. Each field compares by its 32-bit difference, which wraps, so the
rows must be sorted by that order; an empty table finds nothing. 0x7ccde0(wmo, nameSet, group, &row) stores the row found or null and returns whether one was. 0x7ccd30(wmo, nameSet, group)
returns the row's name for the locale, +0x2c + 4 × locale, or the empty string. Neither retries
another name set or the whole-WMO row.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.