mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-08-01 18:29:24 -04:00
Corpse state used corpseMapId == 0 as a missing-position sentinel, but map ID 0 is the valid Eastern Kingdoms continent. Death positions were cached correctly and then rejected by world-map, minimap, distance, and reclaim checks, leaving ghosts without a corpse marker. Add an explicit corpsePositionValid flag independent of map ID. Set it for normal deaths, forced deaths, corpse objects, and MSG_CORPSE_QUERY responses; clear it on character reset and resurrection. Update corpse position getters and reclaim eligibility to use the validity flag so map ID 0 remains fully supported. Verification: rebuilt the wowee target and ran all 31 CTest tests successfully.