File tree Expand file tree Collapse file tree
GeneralsMD/Code/GameEngine/Source/Common
Generals/Code/GameEngine/Source/Common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -690,6 +690,12 @@ Bool GameEngine::canUpdateNetworkGameLogic()
690690Bool GameEngine::canUpdateRegularGameLogic (UnsignedInt logicTimeQueryFlags)
691691{
692692 const Int logicTimeScaleFps = TheFramePacer->getActualLogicTimeScaleFps (logicTimeQueryFlags);
693+
694+ if (logicTimeScaleFps <= 0 )
695+ {
696+ return false ;
697+ }
698+
693699 const Int maxRenderFps = TheFramePacer->getActualFramesPerSecondLimit ();
694700
695701#if defined(_ALLOW_DEBUG_CHEATS_IN_RELEASE)
Original file line number Diff line number Diff line change @@ -857,6 +857,12 @@ Bool GameEngine::canUpdateNetworkGameLogic()
857857Bool GameEngine::canUpdateRegularGameLogic (UnsignedInt logicTimeQueryFlags)
858858{
859859 const Int logicTimeScaleFps = TheFramePacer->getActualLogicTimeScaleFps (logicTimeQueryFlags);
860+
861+ if (logicTimeScaleFps <= 0 )
862+ {
863+ return false ;
864+ }
865+
860866 const Int maxRenderFps = TheFramePacer->getActualFramesPerSecondLimit ();
861867
862868#if defined(_ALLOW_DEBUG_CHEATS_IN_RELEASE)
You can’t perform that action at this time.
0 commit comments