add a pause/slowdown/play/fastforward button for replays

closes #4633
This commit is contained in:
Matthias Mailänder
2014-03-12 11:51:36 +01:00
parent c5ef9cbfb2
commit 0c20e38443
21 changed files with 482 additions and 282 deletions

View File

@@ -167,6 +167,8 @@ namespace OpenRA
var dt = t - orderManager.LastTickTime;
var world = orderManager.world;
var timestep = world == null ? Timestep : world.Timestep;
if (timestep == 0)
return;
if (dt >= timestep)
using (new PerfSample("tick_time"))
{