Core/Players: Improve setting ActivePlayerData::TransportServerTime by including TIME_SYNC and CMSG_QUEUED_MESSAGES_END values in its calculation
Port From (https://github.com/TrinityCore/TrinityCore/commit/821ecf8fa3b6b922ba178cde7593ef5d84ef734b)
This commit is contained in:
@@ -29,6 +29,11 @@ namespace Game.Networking
|
||||
Log.outDebug(LogFilter.Network, "Received ClientOpcode: {0} From: {1}", GetOpcode(), session != null ? session.GetPlayerInfo() : "Unknown IP");
|
||||
}
|
||||
|
||||
public WorldPacket GetWorldPacket()
|
||||
{
|
||||
return _worldPacket;
|
||||
}
|
||||
|
||||
protected WorldPacket _worldPacket;
|
||||
}
|
||||
|
||||
|
||||
@@ -411,6 +411,18 @@ namespace Game.Networking.Packets
|
||||
}
|
||||
}
|
||||
|
||||
class QueuedMessagesEnd : ClientPacket
|
||||
{
|
||||
public uint Timestamp;
|
||||
|
||||
public QueuedMessagesEnd(WorldPacket packet) : base(packet) { }
|
||||
|
||||
public override void Read()
|
||||
{
|
||||
Timestamp = _worldPacket.ReadUInt32();
|
||||
}
|
||||
}
|
||||
|
||||
//Structs
|
||||
public struct AuthWaitInfo
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user