Timedemo: Regard ProcessInput and gfProgressToNextGameTick

This commit is contained in:
obligaron 2021-07-30 00:22:35 +02:00 committed by Anders Jenbo
commit fb562b29e9
4 changed files with 76 additions and 19 deletions

View file

@ -227,7 +227,7 @@ bool nthread_has_500ms_passed()
void nthread_UpdateProgressToNextGameTick()
{
if (!gbRunGame || PauseMode != 0 || (!gbIsMultiplayer && gmenu_is_active()) || !gbProcessPlayers) // if game is not running or paused there is no next gametick in the near future
if (!gbRunGame || PauseMode != 0 || (!gbIsMultiplayer && gmenu_is_active()) || !gbProcessPlayers || demoMode) // if game is not running or paused there is no next gametick in the near future
return;
int currentTickCount = SDL_GetTicks();
int ticksElapsed = last_tick - currentTickCount;