unlock everything when using modkartdata save
doesent make too much sense having to unlock everything again when playing mods
This commit is contained in:
parent
1886b6708f
commit
f072746216
1 changed files with 11 additions and 0 deletions
11
src/g_game.c
11
src/g_game.c
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue