From e6cffbaefbe07f98edb1aea2832dcb909607a9a9 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Fri, 17 Mar 2023 14:41:17 +1100 Subject: [PATCH] - Duke: Remove unnecessary `playrunning()` test within a loop. --- source/games/duke/src/gameloop.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/source/games/duke/src/gameloop.cpp b/source/games/duke/src/gameloop.cpp index 881b71a86..3159c64e3 100644 --- a/source/games/duke/src/gameloop.cpp +++ b/source/games/duke/src/gameloop.cpp @@ -90,17 +90,14 @@ void GameInterface::Ticker() for (int i = connecthead; i >= 0; i = connectpoint2[i]) { - if (playrunning()) - { - auto p = &ps[i]; - if (p->pals.a > 0) - p->pals.a--; + auto p = &ps[i]; + if (p->pals.a > 0) + p->pals.a--; - hud_input(i); - processinputvel(i); - fi.processinput(i); - fi.checksectors(i); - } + hud_input(i); + processinputvel(i); + fi.processinput(i); + fi.checksectors(i); } fi.think();