feat(core): Ensure that all actions are compared to fixed point in time (#1236) (#1458)

i.e. world update start
This commit is contained in:
Viste(Кирилл)
2019-02-14 21:22:17 +03:00
committed by Francesco Borzì
parent 1b7522ff0e
commit 51b8773528
108 changed files with 933 additions and 509 deletions

View File

@@ -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;