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 2025-05-10 23:42:30 +02:00 committed by NepDisk
parent 1886b6708f
commit f072746216

View file

@ -661,6 +661,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.