mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-03 08:03:50 +00:00
fix: dismiss loot roll popup when any player wins, not only when we win
SMSG_LOOT_ROLL_WON signals the roll contest is over for this slot; clear pendingLootRollActive_ unconditionally so the popup does not linger if a different group member wins while we have not yet voted.
This commit is contained in:
parent
7acaa4d301
commit
fb8377f3ca
1 changed files with 2 additions and 4 deletions
|
|
@ -20094,10 +20094,8 @@ void GameHandler::handleLootRollWon(network::Packet& packet) {
|
||||||
winnerName.c_str(), iName.c_str(), rollName, static_cast<int>(rollNum));
|
winnerName.c_str(), iName.c_str(), rollName, static_cast<int>(rollNum));
|
||||||
addSystemChatMessage(buf);
|
addSystemChatMessage(buf);
|
||||||
|
|
||||||
// Clear pending roll if it was ours
|
// Dismiss roll popup — roll contest is over regardless of who won
|
||||||
if (pendingLootRollActive_ && winnerGuid == playerGuid) {
|
|
||||||
pendingLootRollActive_ = false;
|
pendingLootRollActive_ = false;
|
||||||
}
|
|
||||||
LOG_INFO("SMSG_LOOT_ROLL_WON: winner=", winnerName, " item=", itemId,
|
LOG_INFO("SMSG_LOOT_ROLL_WON: winner=", winnerName, " item=", itemId,
|
||||||
" roll=", rollName, "(", rollNum, ")");
|
" roll=", rollName, "(", rollNum, ")");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue