Revert "Core/Misc: Replace time(NULL) with GameTime::GetGameTime()"
This reverts commit 5fe3a1f7f9.
This commit is contained in:
1 parent
4dc27b53eb
commit
c074c3a9c6
69 files changed
+258
-357
No files matched your search
@@ -20,7 +20,6 @@
|
||||
#include "AchievementMgr.h"
|
||||
#include "Common.h"
|
||||
#include "DatabaseEnv.h"
|
||||
#include "GameTime.h"
|
||||
#include "Guild.h"
|
||||
#include "GuildMgr.h"
|
||||
#include "Log.h"
|
||||
@@ -781,7 +780,7 @@ void WorldSession::HandleGuildRewardsQueryOpcode(WorldPacket& recvPacket)
|
||||
data << uint32(0); // Unused
|
||||
data << uint32(rewards[i].AchievementId);
|
||||
}
|
||||
data << uint32(GameTime::GetGameTime());
|
||||
data << uint32(time(nullptr));
|
||||
SendPacket(&data);
|
||||
}
|
||||
}
|
||||
@@ -1039,7 +1038,7 @@ void WorldSession::HandleGuildChallengeRequest(WorldPacket& recvPacket)
|
||||
if (Guild::ChallengesMgr* challengesMgr = pGuild->GetChallengesMgr())
|
||||
{
|
||||
// First check if it's time to reset the challenges.
|
||||
time_t thisTime = GameTime::GetGameTime();
|
||||
time_t thisTime = time(nullptr);
|
||||
if (pGuild->GetChallengesMgr()->CompletedFirstChallenge(pGuild->GetId()) && pGuild->GetChallengesMgr()->GetFirstCompletedChallengeTime(pGuild->GetId()) + WEEK <= thisTime)
|
||||
pGuild->GetChallengesMgr()->ResetWeeklyChallenges();
|
||||
|
||||
|
||||
Reference in new issue
Block a user