From ea2790ce089822f07ee59f1a2ea0618e7c314b44 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Fri, 28 Aug 2020 15:29:41 +1000 Subject: [PATCH] - Duke: Switch game tic back to a while loop. I didn't mean to commit it this way in ab0623597189652871c26e58f94a9810edfdded2. * I doubt anyone will be running this on a system where computing a tic might take longer than a tic, but it's more consistent with the other games and is what it was. --- 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 5c3dd9455..1710bea81 100644 --- a/source/games/duke/src/gameloop.cpp +++ b/source/games/duke/src/gameloop.cpp @@ -327,7 +327,7 @@ bool GameTicker() int const currentTic = I_GetTime(); gameclock = I_GetBuildTime(); - if (playrunning() && currentTic - lastTic >= 1) + while (playrunning() && currentTic - lastTic >= 1) { lastTic = currentTic;