mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-05 12:03:48 +00:00
feat(Core/Time): Implement saparated manager for game time (#8630)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user