Ensure that all actions are compared to fixed point in time (ie. world update start)
This commit is contained in:
1 parent
00babf222a
commit
adae2fec26
43 files changed
+479
-185
No files matched your search
@@ -25,6 +25,7 @@
|
||||
#include "AuctionHouseBot.h"
|
||||
#include "AuctionHouseBotBuyer.h"
|
||||
#include "AuctionHouseBotSeller.h"
|
||||
#include "GameTime.h"
|
||||
|
||||
AuctionBotConfig* AuctionBotConfig::instance()
|
||||
{
|
||||
@@ -494,7 +495,7 @@ void AuctionHouseBot::Rebuild(bool all)
|
||||
for (AuctionHouseObject::AuctionEntryMap::const_iterator itr = auctionHouse->GetAuctionsBegin(); itr != auctionHouse->GetAuctionsEnd(); ++itr)
|
||||
if (!itr->second->owner || sAuctionBotConfig->IsBotChar(itr->second->owner)) // ahbot auction
|
||||
if (all || itr->second->bid == 0) // expire now auction if no bid or forced
|
||||
itr->second->expire_time = sWorld->GetGameTime();
|
||||
itr->second->expire_time = GameTime::GetGameTime();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user