From a323591d5a06ca0e886c5c54db8b3328472e1365 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 25 Aug 2020 21:16:37 +0200 Subject: [PATCH] - call C_RunDelayedCommands() from a centralized place. --- source/core/gamecontrol.cpp | 1 + source/games/duke/src/gameloop.cpp | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/source/core/gamecontrol.cpp b/source/core/gamecontrol.cpp index 26564719a..0ea0b6b4f 100644 --- a/source/core/gamecontrol.cpp +++ b/source/core/gamecontrol.cpp @@ -898,6 +898,7 @@ void TickSubsystems() nexttick += tickInterval; C_Ticker(); M_Ticker(); + C_RunDelayedCommands(); cnt++; } // If this took too long the engine was most likely suspended so recalibrate the timer. diff --git a/source/games/duke/src/gameloop.cpp b/source/games/duke/src/gameloop.cpp index 424bb0ba9..bc961f589 100644 --- a/source/games/duke/src/gameloop.cpp +++ b/source/games/duke/src/gameloop.cpp @@ -319,9 +319,6 @@ bool GameTicker() //Net_GetPackets(); nonsharedkeys(); - - C_RunDelayedCommands(); - checkTimerActive(); gameupdatetime.Reset();