From a87b39a02a79e46d6a2c3be09f87959a2ea3e772 Mon Sep 17 00:00:00 2001 From: Ilya Shurumov Date: Sat, 17 Apr 2021 21:28:33 +0600 Subject: [PATCH] - fix post-replay pause state --- src_rebuild/Game/C/main.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src_rebuild/Game/C/main.c b/src_rebuild/Game/C/main.c index 32f179a9..0b4bd8b4 100644 --- a/src_rebuild/Game/C/main.c +++ b/src_rebuild/Game/C/main.c @@ -1504,7 +1504,7 @@ void StepGame(void) old_camera_change = camera_change; // do camera changes - if (pauseflag == 0 && NoPlayerControl) + if (!pauseflag && NoPlayerControl) { if (gInGameCutsceneActive != 0) camera_change = CutsceneCameraChange(CameraCnt); @@ -1529,6 +1529,11 @@ void StepGame(void) else EnablePause(PAUSEMODE_PAUSE); } + else if(quick_replay && !paused) + { + WantPause = 1; + PauseMode = PAUSEMODE_GAMEOVER; + } paused = 1; } @@ -1539,7 +1544,7 @@ void StepGame(void) if (gDieWithFade != 0) gDieWithFade++; - if (paused != 0) + if (paused) { CamerasSaved = 1; paused = 0;