From 9a208185d6008e30dafa5c4ba439031351081c10 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 31 Aug 2020 19:21:02 +0200 Subject: [PATCH] - levelclock increment after tick. This ensures that the first tick always gets a value of 0. --- source/games/duke/src/gameloop.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/games/duke/src/gameloop.cpp b/source/games/duke/src/gameloop.cpp index 76358f50a..cfb856405 100644 --- a/source/games/duke/src/gameloop.cpp +++ b/source/games/duke/src/gameloop.cpp @@ -62,7 +62,6 @@ void GameInterface::Ticker() if (playrunning()) { - ud.levelclock+= 4; if (earthquaketime > 0) earthquaketime--; ud.camerasprite = -1; @@ -100,6 +99,8 @@ void GameInterface::Ticker() dotorch(); r_NoInterpolate = false; + ud.levelclock+= 4; // This must be at the end of this block so that the first tic receives a value of 0! + } else r_NoInterpolate = true;