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.
This commit is contained in:
toaster 2023-11-04 22:04:29 +00:00
parent dce2c73df1
commit 993dea580c

View file

@ -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)
{