From aa7ef15a65a2c65b18659661a2c2b9486030cbea Mon Sep 17 00:00:00 2001 From: Ketmar Dark Date: Sun, 3 Apr 2016 02:37:11 +0300 Subject: [PATCH] fixed pause mode --- render.d | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/render.d b/render.d index 0193b8b..6cae941 100644 --- a/render.d +++ b/render.d @@ -558,6 +558,7 @@ void renderScene (MonoTime curtime) { gloStackClear(); float atob = (curtime > lastthink ? cast(float)((curtime-lastthink).total!"msecs")/cast(float)((nextthink-lastthink).total!"msecs") : 1.0f); + if (gamePaused || inEditMode) atob = 1.0f; //{ import core.stdc.stdio; printf("atob=%f\n", cast(double)atob); } /* { @@ -1089,10 +1090,8 @@ public void renderThread (Tid starterTid) { lastthink = curtime; while (nextthink <= curtime) nextthink += dur!"msecs"(D2DFrameTime); if (levelLoaded) { - if (!gamePaused) { - // save snapshot and other data for interpolator - Actor.saveSnapshot(prevFrameActorsData[], prevFrameActorOfs.ptr); - } + // save snapshot and other data for interpolator + Actor.saveSnapshot(prevFrameActorsData[], prevFrameActorOfs.ptr); if (!gamePaused && !inEditMode) { // process actors doActorsThink(); -- 2.11.4.GIT