unlock everything when using modkartdata save

doesent make too much sense having to unlock everything again when playing mods
This commit is contained in:
Alug committed 2025-05-10 23:42:53 +02:00
1 parent b34dd7745b
commit f4af9fd394
1 file changed
+11
+11
View File
@@ -625,6 +625,17 @@ static void G_SetSaveGameModified(void)
strcatbf(savegamename, srb2home, PATHSEP);
G_LoadGameData();
// unlock EVERYTHING.
for (UINT8 i = 0; i < MAXUNLOCKABLES; i++)
{
if (!unlockables[i].conditionset)
continue;
if (!unlockables[i].unlocked)
{
unlockables[i].unlocked = true;
}
}
}
// for consistency among messages: this modifies the game and removes savemoddata.