mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-03 02:53:48 +00:00
i.e. world update start
This commit is contained in:
committed by
Francesco Borzì
parent
1b7522ff0e
commit
51b8773528
@@ -13,6 +13,7 @@
|
||||
#include <openssl/md5.h>
|
||||
#include <openssl/sha.h>
|
||||
#include "World.h"
|
||||
#include "GameTime.h"
|
||||
#include "Player.h"
|
||||
#include "Util.h"
|
||||
#include "Warden.h"
|
||||
@@ -88,7 +89,7 @@ void Warden::Update()
|
||||
{
|
||||
if (_initialized)
|
||||
{
|
||||
uint32 currentTimestamp = World::GetGameTimeMS();
|
||||
uint32 currentTimestamp = GameTime::GetGameTimeMS();
|
||||
uint32 diff = getMSTimeDiff(_previousTimestamp, currentTimestamp);
|
||||
_previousTimestamp = currentTimestamp;
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "ByteBuffer.h"
|
||||
#include <openssl/md5.h>
|
||||
#include "World.h"
|
||||
#include "GameTime.h"
|
||||
#include "Player.h"
|
||||
#include "Util.h"
|
||||
#include "WardenMac.h"
|
||||
@@ -189,7 +190,7 @@ void WardenMac::HandleHashResult(ByteBuffer &buff)
|
||||
|
||||
_initialized = true;
|
||||
|
||||
_previousTimestamp = World::GetGameTimeMS();
|
||||
_previousTimestamp = GameTime::GetGameTimeMS();
|
||||
}
|
||||
|
||||
void WardenMac::RequestData()
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include <openssl/md5.h>
|
||||
#include "Database/DatabaseEnv.h"
|
||||
#include "World.h"
|
||||
#include "GameTime.h"
|
||||
#include "Player.h"
|
||||
#include "Util.h"
|
||||
#include "WardenWin.h"
|
||||
@@ -183,7 +184,7 @@ void WardenWin::HandleHashResult(ByteBuffer &buff)
|
||||
|
||||
_initialized = true;
|
||||
|
||||
_previousTimestamp = World::GetGameTimeMS();
|
||||
_previousTimestamp = GameTime::GetGameTimeMS();
|
||||
}
|
||||
|
||||
void WardenWin::RequestData()
|
||||
@@ -199,7 +200,7 @@ void WardenWin::RequestData()
|
||||
if (_otherChecksTodo.empty())
|
||||
_otherChecksTodo.assign(sWardenCheckMgr->OtherChecksIdPool.begin(), sWardenCheckMgr->OtherChecksIdPool.end());
|
||||
|
||||
_serverTicks = World::GetGameTimeMS();
|
||||
_serverTicks = GameTime::GetGameTimeMS();
|
||||
|
||||
uint16 id;
|
||||
uint8 type;
|
||||
@@ -387,7 +388,7 @@ void WardenWin::HandleData(ByteBuffer &buff)
|
||||
buff >> newClientTicks;
|
||||
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
uint32 ticksNow = World::GetGameTimeMS();
|
||||
uint32 ticksNow = GameTime::GetGameTimeMS();
|
||||
uint32 ourTicks = newClientTicks + (ticksNow - _serverTicks);
|
||||
|
||||
sLog->outDebug(LOG_FILTER_WARDEN, "ServerTicks %u", ticksNow); // Now
|
||||
|
||||
Reference in New Issue
Block a user