From 5fb1da94e0499e44d67601148ad6f37cff217adb Mon Sep 17 00:00:00 2001 From: toaster Date: Thu, 11 Sep 2025 15:40:56 +0100 Subject: [PATCH] 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 --- src/g_gamedata.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/g_gamedata.cpp b/src/g_gamedata.cpp index d545b8f1b..ef7480987 100644 --- a/src/g_gamedata.cpp +++ b/src/g_gamedata.cpp @@ -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)