From d963119433ac732923427362cd2f8c35ccd63eaf Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 1 Dec 2008 10:49:54 -0600 Subject: [PATCH] *Use buyout to buy an auction when the last bid is close to the buyout price. By Paradox. --HG-- branch : trunk --- src/game/AuctionHouse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/AuctionHouse.cpp b/src/game/AuctionHouse.cpp index b1420f680c..8a2ce27d24 100644 --- a/src/game/AuctionHouse.cpp +++ b/src/game/AuctionHouse.cpp @@ -367,7 +367,7 @@ void WorldSession::HandleAuctionPlaceBid( WorldPacket & recv_data ) return; } - if (price < (auction->bid + objmgr.GetAuctionOutBid(auction->bid))) + if ((price < (auction->bid + objmgr.GetAuctionOutBid(auction->bid))) && ((price < auction->buyout) || (auction->buyout == 0))) { //auction has already higher bid, client tests it! //SendAuctionCommandResult(auction->auctionId, AUCTION_PLACE_BID, ???);