unlock everything when using modkartdata save
doesent make too much sense having to unlock everything again when playing mods
This commit is contained in:
1 parent
b34dd7745b
commit
f4af9fd394
1 file changed
+11
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user