From 2d9a024c4a2c57db101ea1e19bb7bd8632802224 Mon Sep 17 00:00:00 2001 From: TehRealSalt Date: Fri, 4 Aug 2017 13:57:47 -0400 Subject: [PATCH] Commenting out lastmapsaved --- src/doomstat.h | 2 +- src/g_game.c | 2 +- src/m_menu.c | 2 +- src/p_saveg.c | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/doomstat.h b/src/doomstat.h index 8eec860c3..992d39a45 100644 --- a/src/doomstat.h +++ b/src/doomstat.h @@ -41,7 +41,7 @@ extern INT16 maptol; extern UINT8 globalweather; extern INT32 curWeather; extern INT32 cursaveslot; -extern INT16 lastmapsaved; +//extern INT16 lastmapsaved; extern INT16 lastmaploaded; extern boolean gamecomplete; diff --git a/src/g_game.c b/src/g_game.c index 1923be04a..1a2a2aac6 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -77,7 +77,7 @@ INT16 maptol; UINT8 globalweather = 0; INT32 curWeather = PRECIP_NONE; INT32 cursaveslot = -1; // Auto-save 1p savegame slot -INT16 lastmapsaved = 0; // Last map we auto-saved at +//INT16 lastmapsaved = 0; // Last map we auto-saved at INT16 lastmaploaded = 0; // Last map the game loaded boolean gamecomplete = false; diff --git a/src/m_menu.c b/src/m_menu.c index b7f9e8802..c49d7c023 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -6111,7 +6111,7 @@ static void M_ChoosePlayer(INT32 choice) if (startmap != spstage_start) cursaveslot = -1; - lastmapsaved = 0; + //lastmapsaved = 0; gamecomplete = false; G_DeferedInitNew(ultmode, G_BuildMapName(startmap), (UINT8)skinnum, false, fromlevelselect); diff --git a/src/p_saveg.c b/src/p_saveg.c index f09e0163e..b065a02e0 100644 --- a/src/p_saveg.c +++ b/src/p_saveg.c @@ -3159,7 +3159,7 @@ static inline void P_ArchiveMisc(void) else WRITEINT16(save_p, gamemap); - lastmapsaved = gamemap; + //lastmapsaved = gamemap; lastmaploaded = gamemap; WRITEUINT16(save_p, (botskin ? (emeralds|(1<<10)) : emeralds)+357); @@ -3185,7 +3185,7 @@ static inline void P_UnArchiveSPGame(INT16 mapoverride) if(!mapheaderinfo[gamemap-1]) P_AllocMapHeader(gamemap-1); - lastmapsaved = gamemap; + //lastmapsaved = gamemap; lastmaploaded = gamemap; tokenlist = 0;