*The last merge from Mangos TBC. Update to Mangos v0.12.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-22 10:59:38 -06:00
parent f7dd2df795
commit 65ef38963d
15 changed files with 214 additions and 171 deletions
+7 -2
View File
@@ -367,10 +367,15 @@ void WorldSession::HandleAuctionPlaceBid( WorldPacket & recv_data )
return;
}
if ((price < (auction->bid + objmgr.GetAuctionOutBid(auction->bid))) && ((price < auction->buyout) || (auction->buyout == 0)))
// cheating
if(price <= auction->bid)
return;
// price too low for next bid if not buyout
if ((price < auction->buyout || auction->buyout == 0) &&
price < auction->bid + objmgr.GetAuctionOutBid(auction->bid))
{
//auction has already higher bid, client tests it!
//SendAuctionCommandResult(auction->auctionId, AUCTION_PLACE_BID, ???);
return;
}