From f072746216b59659b4e54566634f35b921bca52c Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 10 May 2025 23:42:30 +0200 Subject: [PATCH] unlock everything when using modkartdata save doesent make too much sense having to unlock everything again when playing mods --- src/g_game.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/g_game.c b/src/g_game.c index 3f36d9862..65c55b542 100644 --- a/src/g_game.c +++ b/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.