mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
fix: prefetch item info for trade slot items in SMSG_TRADE_STATUS_EXTENDED
After parsing the peer's trade window state, query item info for all occupied slots so item names display immediately rather than showing 'Item 12345' until the cache is populated on the next frame.
This commit is contained in:
parent
06facc0060
commit
170ff1597c
1 changed files with 5 additions and 0 deletions
|
|
@ -19201,6 +19201,11 @@ void GameHandler::handleTradeStatusExtended(network::Packet& packet) {
|
|||
else peerTradeGold_ = coins;
|
||||
}
|
||||
|
||||
// Prefetch item info for all occupied trade slots so names show immediately
|
||||
for (const auto& s : slots) {
|
||||
if (s.occupied && s.itemId != 0) queryItemInfo(s.itemId, 0);
|
||||
}
|
||||
|
||||
LOG_DEBUG("SMSG_TRADE_STATUS_EXTENDED: isSelf=", (int)isSelf,
|
||||
" myGold=", myTradeGold_, " peerGold=", peerTradeGold_);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue