From 9d78e8d5f4ac4aaddfbcd118e8c1ccf25126fbd3 Mon Sep 17 00:00:00 2001 From: Brad Harding Date: Wed, 27 Nov 2024 16:33:28 +1100 Subject: [PATCH] Fix incorrect savegame timestamp --- src/g_game.c | 4 ++-- src/g_game.h | 1 + src/m_menu.c | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/g_game.c b/src/g_game.c index 0b26d4449..21b6b7c4f 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -168,9 +168,9 @@ static int dclicktime2; static bool dclickstate2; static int dclicks2; -static int savegameslot; -static char savedescription[SAVESTRINGSIZE]; +int savegameslot; char savename[MAX_PATH]; +static char savedescription[SAVESTRINGSIZE]; gameaction_t loadaction = ga_nothing; diff --git a/src/g_game.h b/src/g_game.h index af4d91ffe..b07c322b0 100644 --- a/src/g_game.h +++ b/src/g_game.h @@ -117,6 +117,7 @@ extern char keyactionlist[NUMKEYS][255]; extern char mouseactionlist[MAXMOUSEBUTTONS + 2][255]; extern int st_facecount; extern char savename[MAX_PATH]; +extern int savegameslot; extern bool usefreelook; extern bool secretexit; extern gameaction_t loadaction; diff --git a/src/m_menu.c b/src/m_menu.c index 3d75dcf0e..eb1a53175 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -1072,6 +1072,7 @@ static void M_LoadSelect(int choice) S_StartSound(NULL, sfx_pistol); functionkey = 0; quicksaveslot = choice; + savegameslot = choice; G_LoadGame(name); } else