From 7af6fd49110d6e8698261783de88e590e025ec30 Mon Sep 17 00:00:00 2001 From: toaster Date: Mon, 26 Feb 2024 20:07:29 +0000 Subject: [PATCH] G_DoCompleted: Set legitimateexit *after* it's been used, not before Was preventing successful tutorial challenge completion from registering, even under the old extremely hard rules --- src/g_game.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/g_game.c b/src/g_game.c index b309daae3..eaa15ebe7 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -4377,8 +4377,6 @@ static void G_DoCompleted(void) // Then, update some important game state. { - legitimateexit = false; - if (modeattacking && pausedelay) pausedelay = 0; @@ -4450,6 +4448,9 @@ static void G_DoCompleted(void) tutorialchallenge = TUTORIALSKIP_NONE; } + // This can now be set. + legitimateexit = false; + if (!demo.playback) { // Set up power level gametype scrambles