- Duke3D & RR: Always process cheats even while paused.

* Resolves https://forum.zdoom.org/viewtopic.php?f=340&t=68961
This commit is contained in:
Mitchell Richters 2020-06-13 22:27:32 +10:00 committed by Christoph Oelckers
parent 35471ce7e2
commit 7b3ad35cc2
2 changed files with 4 additions and 4 deletions

View file

@ -5859,10 +5859,10 @@ MAIN_LOOP_RESTART:
g_gameUpdateAvgTime
= ((GAMEUPDATEAVGTIMENUMSAMPLES - 1.f) * g_gameUpdateAvgTime + g_gameUpdateTime) / ((float)GAMEUPDATEAVGTIMENUMSAMPLES);
G_DoCheats();
}
G_DoCheats();
if (myplayer.gm & (MODE_EOL|MODE_RESTART))
{
switch (G_EndOfLevel())

View file

@ -7345,10 +7345,10 @@ MAIN_LOOP_RESTART:
if (g_gameUpdateAvgTime < 0.f)
g_gameUpdateAvgTime = g_gameUpdateTime;
g_gameUpdateAvgTime = ((GAMEUPDATEAVGTIMENUMSAMPLES-1.f)*g_gameUpdateAvgTime+g_gameUpdateTime)/((float) GAMEUPDATEAVGTIMENUMSAMPLES);
G_DoCheats();
}
G_DoCheats();
if (g_player[myconnectindex].ps->gm & (MODE_EOL|MODE_RESTART))
{
switch (G_EndOfLevel())