From e9c0831cccf87bf0491515c1192208510d8cd181 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Tue, 25 Aug 2020 19:16:16 +1000 Subject: [PATCH] Revert "- Duke: Remove left-over line." and re-do as a multiplier of `TICSPERFRAME` for better clarity as to what's happening rather than a bit-shift. * It's also better that everything be based off the one tic clock and not call `I_GetBuildTime()` to set `gameclock`. This also ensures that `gameclock` always increases in intervals of 4. This reverts commit 63eac13d6442357fdab57067ec913a2ce8ce72db. --- source/games/duke/src/gameloop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/gameloop.cpp b/source/games/duke/src/gameloop.cpp index 5ecc6f244..b7e8137fe 100644 --- a/source/games/duke/src/gameloop.cpp +++ b/source/games/duke/src/gameloop.cpp @@ -328,11 +328,11 @@ bool GameTicker() gameupdatetime.Clock(); int const currentTic = I_GetTime(); - gameclock = I_GetBuildTime(); if (playrunning() && currentTic - lastTic >= 1) { lastTic = currentTic; + gameclock = currentTic * TICSPERFRAME; GetInput(); auto const pPlayer = &ps[myconnectindex];