feat(Core/Time): Implement saparated manager for game time (#8630)

This commit is contained in:
Kargatum
2022-01-24 17:55:00 +07:00
committed by GitHub
parent 12da792a90
commit 8b7df23f06
129 changed files with 1147 additions and 817 deletions

View File

@@ -17,6 +17,7 @@
#include "Battlefield.h"
#include "BattlefieldMgr.h"
#include "GameTime.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
@@ -190,13 +191,13 @@ public:
switch (type)
{
case EVENT_ARCHAVON:
ArchavonDeath = time(nullptr);
ArchavonDeath = GameTime::GetGameTime().count();
break;
case EVENT_EMALON:
EmalonDeath = time(nullptr);
EmalonDeath = GameTime::GetGameTime().count();
break;
case EVENT_KORALON:
KoralonDeath = time(nullptr);
KoralonDeath = GameTime::GetGameTime().count();
break;
default:
return;