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

@@ -39,7 +39,7 @@ namespace OpenRA.Mods.Common.Server
public void GameStarted(S server) { PingMasterServer(server); }
public void GameEnded(S server) { PingMasterServer(server); }
int lastPing = 0;
long lastPing = 0;
bool isInitialPing = true;
volatile bool isBusy;

View File

@@ -24,8 +24,8 @@ namespace OpenRA.Mods.Common.Server
// TickTimeout is in microseconds
public int TickTimeout { get { return PingInterval * 100; } }
int lastPing = 0;
int lastConnReport = 0;
long lastPing = 0;
long lastConnReport = 0;
bool isInitialPing = true;
public void Tick(S server)

View File

@@ -124,7 +124,7 @@ namespace OpenRA.Mods.Common.Widgets
tooltipContainer.Value.RemoveTooltip();
}
int lastScrollTime = 0;
long lastScrollTime = 0;
public override void Draw()
{
if (IsJoystickScrolling)