From 3b78d6f3434dbe3929f268589c7a71a8920292b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Mon, 17 Feb 2014 11:07:09 +0100 Subject: [PATCH] use relative tick time intervals --- OpenRA.Game/Game.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Game.cs b/OpenRA.Game/Game.cs index c3381a9f66..f630635dfe 100644 --- a/OpenRA.Game/Game.cs +++ b/OpenRA.Game/Game.cs @@ -179,7 +179,7 @@ namespace OpenRA if (worldTimestep != 0 && worldTickDelta >= worldTimestep) using (new PerfSample("tick_time")) { - orderManager.LastTickTime += worldTimestep; + orderManager.LastTickTime += (worldTickDelta / worldTimestep) * worldTimestep; if (orderManager.GameStarted) ++Viewport.TicksSinceLastMove;