Change Game.RunTime to a long to prevent overflow.
This commit is contained in:
@@ -39,7 +39,7 @@ namespace OpenRA.Network
|
||||
public int LocalFrameNumber;
|
||||
public int FramesAhead = 0;
|
||||
|
||||
public int LastTickTime = Game.RunTime;
|
||||
public long LastTickTime = Game.RunTime;
|
||||
|
||||
public bool GameStarted { get { return NetFrameNumber != 0; } }
|
||||
public IConnection Connection { get; private set; }
|
||||
|
||||
@@ -135,9 +135,9 @@ namespace OpenRA.Network
|
||||
public class ClientPing
|
||||
{
|
||||
public int Index;
|
||||
public int Latency = -1;
|
||||
public int LatencyJitter = -1;
|
||||
public int[] LatencyHistory = { };
|
||||
public long Latency = -1;
|
||||
public long LatencyJitter = -1;
|
||||
public long[] LatencyHistory = { };
|
||||
|
||||
public static ClientPing Deserialize(MiniYaml data)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user