Core/Misc: Replace Time.UnixTime with GameTime.GetGameTime()
Port From (https://github.com/TrinityCore/TrinityCore/commit/e17e4e6f0700c7d950e1b2654c217ec8b28ae79e)
This commit is contained in:
@@ -249,7 +249,7 @@ namespace Game
|
||||
|
||||
WorldPacket firstDelayedPacket = null;
|
||||
uint processedPackets = 0;
|
||||
long currentTime = Time.UnixTime;
|
||||
long currentTime = GameTime.GetGameTime();
|
||||
|
||||
WorldPacket packet;
|
||||
//Check for any packets they was not recived yet.
|
||||
@@ -332,9 +332,8 @@ namespace Game
|
||||
|
||||
if (updater.ProcessUnsafe())
|
||||
{
|
||||
long currTime = Time.UnixTime;
|
||||
// If necessary, log the player out
|
||||
if (ShouldLogOut(currTime) && m_playerLoading.IsEmpty())
|
||||
if (ShouldLogOut(currentTime) && m_playerLoading.IsEmpty())
|
||||
LogoutPlayer(true);
|
||||
|
||||
if (m_Socket[(int)ConnectionType.Realm] != null && GetPlayer() && _warden != null)
|
||||
|
||||
Reference in New Issue
Block a user