mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
Core/Misc: revert some gametime calls back to getMsTime until the gameevent replacement has been merged
This commit is contained in:
@@ -616,7 +616,7 @@ bool AuctionHouseObject::RemoveAuction(AuctionEntry* auction)
|
||||
|
||||
void AuctionHouseObject::Update()
|
||||
{
|
||||
time_t curTime = GameTime::GetGameTime();
|
||||
time_t curTime = time(nullptr);
|
||||
///- Handle expired auctions
|
||||
|
||||
// If storage is empty, no need to update. next == nullptr in this case.
|
||||
@@ -711,7 +711,7 @@ void AuctionHouseObject::BuildListAuctionItems(WorldPacket& data, Player* player
|
||||
LocaleConstant localeConstant = player->GetSession()->GetSessionDbLocaleIndex();
|
||||
int locdbc_idx = player->GetSession()->GetSessionDbcLocale();
|
||||
|
||||
time_t curTime = GameTime::GetGameTime();
|
||||
time_t curTime = time(nullptr);
|
||||
|
||||
PlayerGetAllThrottleMap::const_iterator itr = GetAllThrottleMap.find(player->GetGUID());
|
||||
time_t throttleTime = itr != GetAllThrottleMap.end() ? itr->second : curTime;
|
||||
|
||||
@@ -1771,7 +1771,8 @@ void GameEventMgr::SetHolidayEventTime(GameEventData& event)
|
||||
|
||||
bool singleDate = ((holiday->Date[0] >> 24) & 0x1F) == 31; // Events with fixed date within year have - 1
|
||||
|
||||
time_t curTime = GameTime::GetGameTime();
|
||||
// GameTime is not initialized at this point
|
||||
time_t curTime = time(nullptr);
|
||||
for (uint8 i = 0; i < MAX_HOLIDAY_DATES && holiday->Date[i]; ++i)
|
||||
{
|
||||
uint32 date = holiday->Date[i];
|
||||
|
||||
Reference in New Issue
Block a user