From 993dea580c0a2947ae0d7d37d1a6cc75c9348a2d Mon Sep 17 00:00:00 2001 From: toaster Date: Sat, 4 Nov 2023 22:04:29 +0000 Subject: [PATCH] Fix tracking map completion for Tutorial stages The author of this commit is hesitant to allow mapwarp to bypass completion requirements under regular circumstances, but happy enough to make the exception for specifically GT_TUTORIAL. --- src/g_game.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/g_game.c b/src/g_game.c index e65baacd1..55f1ce2ac 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -3615,7 +3615,7 @@ void G_UpdateVisited(void) if (!P_IsLocalPlayer(&players[i])) // Not local. continue; - if (players[i].spectator) // Not playing. + if (players[i].spectator == true) // Not playing. continue; if (players[i].pflags & PF_NOCONTEST) // Sonic after not surviving. @@ -4167,7 +4167,13 @@ static void G_DoCompleted(void) // Finally, if you're not exiting, guarantee NO CONTEST. // We do this seperately from the loop above Challenges, // so NOCONTEST-related Challenges don't fire on exitlevel. - for (i = 0; i < MAXPLAYERS; i++) + if (gametype == GT_TUTORIAL) + { + // Maybe one day there'll be another context in which + // there's no way to progress other than ACS, but for + // now, Tutorial is a hardcoded exception. + } + else for (i = 0; i < MAXPLAYERS; i++) { if (playeringame[i] == false) {