mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Fix spell cast error messages, action bar drag-drop, and player name display
- Rewrite SpellCastResult enum to match AzerothCore 3.3.5a values (was misaligned, showing wrong error messages like "Not while trading" instead of "Unit not in front") - Fix spellbook-to-action-bar drag-drop by using ImGuiHoveredFlags_AllowWhenBlockedByActiveItem for cross-window hover detection - Fix player frame showing wrong character name by looking up activeCharacterGuid instead of always using characters[0] - Clear playerNameCache on disconnect to prevent stale names across sessions
This commit is contained in:
parent
b9dfce3c66
commit
848f419ac4
3 changed files with 153 additions and 114 deletions
|
|
@ -806,6 +806,8 @@ void GameHandler::disconnect() {
|
|||
socket.reset();
|
||||
}
|
||||
activeCharacterGuid_ = 0;
|
||||
playerNameCache.clear();
|
||||
pendingNameQueries.clear();
|
||||
setState(WorldState::DISCONNECTED);
|
||||
LOG_INFO("Disconnected from world server");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue