diff --git a/source/duke3d/src/game.cpp b/source/duke3d/src/game.cpp index 31986901d..ef7e13b93 100644 --- a/source/duke3d/src/game.cpp +++ b/source/duke3d/src/game.cpp @@ -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()) diff --git a/source/rr/src/game.cpp b/source/rr/src/game.cpp index 640b7abf4..6e61b1be2 100644 --- a/source/rr/src/game.cpp +++ b/source/rr/src/game.cpp @@ -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())