Skip to content

Commit

Permalink
update save counter when using the console
Browse files Browse the repository at this point in the history
  • Loading branch information
walkawayy committed Nov 5, 2024
1 parent 8b3a48b commit d0a3bec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tr2/game/savegame/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit d0a3bec

Please sign in to comment.