From 715638afc785a4b111099846fdcf44ea96e18c69 Mon Sep 17 00:00:00 2001 From: walkawayy <81546780+walkawayy@users.noreply.github.com> Date: Tue, 5 Nov 2024 11:10:22 -0500 Subject: [PATCH] update save counter when using the console --- src/tr2/game/savegame/common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tr2/game/savegame/common.c b/src/tr2/game/savegame/common.c index de29fdcf6..378c2cab5 100644 --- a/src/tr2/game/savegame/common.c +++ b/src/tr2/game/savegame/common.c @@ -17,7 +17,11 @@ bool Savegame_IsSlotFree(const int32_t slot_idx) bool Savegame_Save(const int32_t slot_idx) { CreateSaveGameInfo(); + const int16_t slot_num = g_Inv_ExtraData[1]; S_SaveGame(&g_SaveGame, sizeof(SAVEGAME_INFO), slot_idx); + // TODO: move me inside S_SaveGame + g_SaveGameReqFlags1[slot_num] = g_RequesterFlags1[slot_num]; + g_SaveGameReqFlags2[slot_num] = g_RequesterFlags2[slot_num]; GetSavedGamesList(&g_LoadGameRequester); return true; }