Change Game.RunTime to a long to prevent overflow.

This commit is contained in:
RoosterDragon
2016-09-20 19:06:10 +01:00
parent 57ceda3025
commit 2ffea5db54
12 changed files with 25 additions and 20 deletions

View File

@@ -26,9 +26,9 @@ namespace OpenRA.Server
public int Frame = 0;
public int MostRecentFrame = 0;
public int TimeSinceLastResponse { get { return Game.RunTime - lastReceivedTime; } }
public long TimeSinceLastResponse { get { return Game.RunTime - lastReceivedTime; } }
public bool TimeoutMessageShown = false;
int lastReceivedTime = 0;
long lastReceivedTime = 0;
/* client data */
public int PlayerIndex;