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
18
src/g_game.c
18
src/g_game.c
|
|
@ -3782,7 +3782,7 @@ void G_UpdateVisited(void)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Neither for tutorial skip material
|
// Neither for tutorial skip material
|
||||||
if (nextmapoverride == NEXTMAP_TUTORIALCHALLENGE+1 || tutorialchallenge != TUTORIALSKIP_NONE)
|
if (tutorialchallenge != TUTORIALSKIP_NONE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Check if every local player wiped out.
|
// Check if every local player wiped out.
|
||||||
|
|
@ -4545,24 +4545,26 @@ static void G_DoCompleted(void)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Proceed.
|
// Proceed.
|
||||||
|
// ~toast 161123 (5 years of srb2kart, woooouuuu)
|
||||||
nextmapoverride = NEXTMAP_TITLE+1;
|
nextmapoverride = NEXTMAP_TITLE+1;
|
||||||
|
tutorialchallenge = TUTORIALSKIP_NONE;
|
||||||
|
|
||||||
gamedata->finishedtutorialchallenge = true;
|
if (!gamedata->finishedtutorialchallenge)
|
||||||
|
{
|
||||||
|
gamedata->finishedtutorialchallenge = true;
|
||||||
|
|
||||||
M_UpdateUnlockablesAndExtraEmblems(true, true);
|
M_UpdateUnlockablesAndExtraEmblems(true, true);
|
||||||
gamedata->deferredsave = true;
|
gamedata->deferredsave = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
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;
|
tutorialchallenge = TUTORIALSKIP_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// This can now be set.
|
// This can now be set.
|
||||||
|
prevmap = gamemap-1;
|
||||||
legitimateexit = false;
|
legitimateexit = false;
|
||||||
|
|
||||||
if (!demo.playback)
|
if (!demo.playback)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue