Merge pull request #12074 from RoosterDragon/runtime-long

Change Game.RunTime to a long to prevent overflow
This commit is contained in:
Oliver Brakmann
2016-09-21 18:07:52 +02:00
committed by GitHub
12 changed files with 25 additions and 20 deletions

View File

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

View File

@@ -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)
{