mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
fix: clear gossip/quest POI markers on map change (SMSG_NEW_WORLD)
Quest POI markers are map-specific. Clearing gossipPois_ on world entry prevents stale markers from previous maps being displayed on the new map. Quest POIs will be re-fetched as the quest log re-queries on the new map.
This commit is contained in:
parent
2ee0934653
commit
72a16a2427
1 changed files with 4 additions and 0 deletions
|
|
@ -16702,6 +16702,10 @@ void GameHandler::handleNewWorld(network::Packet& packet) {
|
|||
entityManager.clear();
|
||||
hostileAttackers_.clear();
|
||||
worldStates_.clear();
|
||||
// Quest POI markers are map-specific; remove those that don't apply to the new map.
|
||||
// Markers without a questId tag (data==0) are gossip-window POIs — keep them cleared
|
||||
// here since gossipWindowOpen is reset on teleport anyway.
|
||||
gossipPois_.clear();
|
||||
worldStateMapId_ = mapId;
|
||||
worldStateZoneId_ = 0;
|
||||
activeAreaTriggers_.clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue