mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[11423] Support localization into auction sorting.
This commit is contained in:
parent
0b2f34f93b
commit
b997f4925d
4 changed files with 49 additions and 18 deletions
|
|
@ -377,6 +377,9 @@ void WorldSession::HandleAuctionSellItem(WorldPacket & recv_data)
|
|||
AH->itemGuidLow = newItem->GetObjectGuid().GetCounter();
|
||||
AH->itemTemplate = newItem->GetEntry();
|
||||
AH->owner = pl->GetGUIDLow();
|
||||
|
||||
Utf8toWStr(pl->GetName(), AH->ownerName);
|
||||
|
||||
AH->startbid = bid;
|
||||
AH->bidder = 0;
|
||||
AH->bid = 0;
|
||||
|
|
@ -748,7 +751,7 @@ void WorldSession::HandleAuctionListItems(WorldPacket & recv_data)
|
|||
std::list<AuctionEntry*> auctions;
|
||||
for (AuctionHouseObject::AuctionEntryMap::const_iterator itr = aucs->begin(); itr != aucs->end(); ++itr)
|
||||
auctions.push_back(itr->second);
|
||||
AuctionSorter sorter(Sort);
|
||||
AuctionSorter sorter(Sort, GetPlayer());
|
||||
auctions.sort(sorter);
|
||||
|
||||
// remove fake death
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue