mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-24 16:10:14 +00:00
Revert quest reward window delay that caused dialog to hang
The delayed-opening logic conflicted with quest details' use of the same questDetailsOpenTime variable, causing the reward dialog to never appear. Reverted to immediately opening the window. Item info queries are still triggered, but will populate asynchronously with placeholders shown initially.
This commit is contained in:
parent
510370dc7b
commit
b5291d1883
2 changed files with 3 additions and 14 deletions
|
|
@ -15770,19 +15770,17 @@ void GameHandler::handleQuestOfferReward(network::Packet& packet) {
|
|||
pendingTurnInRewardRequest_ = false;
|
||||
}
|
||||
currentQuestOfferReward_ = data;
|
||||
questOfferRewardOpen_ = true;
|
||||
questRequestItemsOpen_ = false;
|
||||
gossipWindowOpen = false;
|
||||
questDetailsOpen = false;
|
||||
questDetailsOpenTime = std::chrono::steady_clock::time_point{};
|
||||
|
||||
// Query item names for reward items
|
||||
for (const auto& item : data.choiceRewards)
|
||||
queryItemInfo(item.itemId, 0);
|
||||
for (const auto& item : data.fixedRewards)
|
||||
queryItemInfo(item.itemId, 0);
|
||||
|
||||
// Delay opening window by 100ms to allow item queries to complete (avoids "Item X" placeholders)
|
||||
questOfferRewardOpen_ = false;
|
||||
questDetailsOpenTime = std::chrono::steady_clock::now() + std::chrono::milliseconds(100);
|
||||
}
|
||||
|
||||
void GameHandler::completeQuest() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue