Review: Don't award map visitation when the tutorial challenge is queued up, either

This commit is contained in:
toaster 2023-11-18 12:15:36 +00:00
parent 1ef427631e
commit 55c6602473
2 changed files with 6 additions and 1 deletions

View file

@ -3626,6 +3626,10 @@ void G_UpdateVisited(void)
if (prevmap != gamemap-1)
return;
// Neither for tutorial skip material
if (nextmapoverride == NEXTMAP_TUTORIALCHALLENGE+1 || tutorialchallenge != TUTORIALSKIP_NONE)
return;
// Check if every local player wiped out.
for (i = 0; i < MAXPLAYERS; i++)
{

View file

@ -1906,7 +1906,8 @@ void Y_DetermineIntermissionType(void)
|| (modeattacking && (players[consoleplayer].pflags & PF_NOCONTEST))
// or for explicit requested skip (outside of modeattacking)
|| (modeattacking == ATTACKING_NONE && skipstats != 0)
|| (tutorialchallenge != TUTORIALSKIP_NONE))
// or tutorial skip material
|| (nextmapoverride == NEXTMAP_TUTORIALCHALLENGE || tutorialchallenge != TUTORIALSKIP_NONE))
{
intertype = int_none;
return;