PRE-unlock Brakes, Drifting, and Springs if your gamedata is converted from post-goner state

Means you'll only see a pop-up/challenge board visit for the Items tutorial, which is the new material you didn't previously have access to
This commit is contained in:
toaster 2025-09-11 15:40:56 +01:00
parent e92725ea86
commit 5fb1da94e0

View file

@ -33,6 +33,7 @@ namespace fs = std::filesystem;
#define GD_MINIMUM_SPRAYCANSV2 (2)
#define GD_MINIMUM_TIMEATTACKV2 (2)
#define GD_MINIMUM_TUTORIALLOCK (2)
void srb2::save_ng_gamedata()
{
@ -917,6 +918,16 @@ void srb2::load_ng_gamedata()
converted = true;
}
if (minorversion < GD_MINIMUM_TUTORIALLOCK && gamedata->gonerlevel >= GDGONER_DONE)
{
converted = true;
uint16_t checklocks[] = {751, 752, 754}; // Brakes, Drifting, Springs
for (uint16_t checklock : checklocks)
{
gamedata->unlocked[checklock - 1] = true;
}
}
M_FinaliseGameData();
if (converted)