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

@@ -8,6 +8,7 @@
#include "Config.h"
#include "ByteBuffer.h"
#include "WorldPacket.h"
#include "GameTime.h"
PacketLog::PacketLog() : _file(NULL)
{
@@ -40,7 +41,7 @@ void PacketLog::LogPacket(WorldPacket const& packet, Direction direction)
ByteBuffer data(4+4+4+1+packet.size());
data << int32(packet.GetOpcode());
data << int32(packet.size());
data << uint32(time(NULL));
data << uint32(GameTime::GetGameTime());
data << uint8(direction);
for (uint32 i = 0; i < packet.size(); i++)