mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
G_UpdateVisited, G_DoCompleted: Clean up tutorialchallenge behaviour
- Permit saving "this map has been beaten" for the Tutorial Challenge map if you conquered it
- This was previously short circuited because it wasn't a dedicated course
- Only trigger an extra UpdateUnlockablesAndExtraEmblems check if you haven't yet completed it
This commit is contained in:
parent
4fd95a3060
commit
a96e39b22f
1 changed files with 10 additions and 8 deletions
12
src/g_game.c
12
src/g_game.c
|
|
@ -3782,7 +3782,7 @@ void G_UpdateVisited(void)
|
|||
return;
|
||||
|
||||
// Neither for tutorial skip material
|
||||
if (nextmapoverride == NEXTMAP_TUTORIALCHALLENGE+1 || tutorialchallenge != TUTORIALSKIP_NONE)
|
||||
if (tutorialchallenge != TUTORIALSKIP_NONE)
|
||||
return;
|
||||
|
||||
// Check if every local player wiped out.
|
||||
|
|
@ -4545,24 +4545,26 @@ static void G_DoCompleted(void)
|
|||
else
|
||||
{
|
||||
// Proceed.
|
||||
// ~toast 161123 (5 years of srb2kart, woooouuuu)
|
||||
nextmapoverride = NEXTMAP_TITLE+1;
|
||||
tutorialchallenge = TUTORIALSKIP_NONE;
|
||||
|
||||
if (!gamedata->finishedtutorialchallenge)
|
||||
{
|
||||
gamedata->finishedtutorialchallenge = true;
|
||||
|
||||
M_UpdateUnlockablesAndExtraEmblems(true, true);
|
||||
gamedata->deferredsave = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// The "else" might not be strictly needed, but I don't
|
||||
// want the "challenge" map to be considered visited before it's your time.
|
||||
// ~toast 161123 (5 years of srb2kart, woooouuuu)
|
||||
prevmap = gamemap-1;
|
||||
tutorialchallenge = TUTORIALSKIP_NONE;
|
||||
}
|
||||
|
||||
// This can now be set.
|
||||
prevmap = gamemap-1;
|
||||
legitimateexit = false;
|
||||
|
||||
if (!demo.playback)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue