- added checks for the special hacky quicksave marker.

This commit is contained in:
Christoph Oelckers 2019-08-11 18:37:32 +02:00
parent a53861e27e
commit 6cc9434788
2 changed files with 4 additions and 4 deletions

View file

@ -342,7 +342,7 @@ void FSavegameManager::NotifyNewSave(const FString &file, const FString &title,
node->bMissingWads = false; node->bMissingWads = false;
if (okForQuicksave) if (okForQuicksave)
{ {
if (quickSaveSlot == nullptr || forceQuicksave) quickSaveSlot = node; if (quickSaveSlot == nullptr || quickSaveSlot == (FSaveGameNode*)1 || forceQuicksave) quickSaveSlot = node;
LastAccessed = LastSaved = i; LastAccessed = LastSaved = i;
} }
return; return;
@ -358,7 +358,7 @@ void FSavegameManager::NotifyNewSave(const FString &file, const FString &title,
if (okForQuicksave) if (okForQuicksave)
{ {
if (quickSaveSlot == nullptr || forceQuicksave) quickSaveSlot = node; if (quickSaveSlot == nullptr || quickSaveSlot == (FSaveGameNode*)1 || forceQuicksave) quickSaveSlot = node;
LastAccessed = LastSaved = index; LastAccessed = LastSaved = index;
} }
} }

View file

@ -183,7 +183,7 @@ CCMD (quicksave)
return; return;
} }
if (savegameManager.quickSaveSlot == NULL) if (savegameManager.quickSaveSlot == NULL || savegameManager.quickSaveSlot == (FSaveGameNode*)1)
{ {
S_Sound(CHAN_VOICE | CHAN_UI, "menu/activate", snd_menuvolume, ATTN_NONE); S_Sound(CHAN_VOICE | CHAN_UI, "menu/activate", snd_menuvolume, ATTN_NONE);
M_StartControlPanel(false); M_StartControlPanel(false);
@ -228,7 +228,7 @@ CCMD (quickload)
return; return;
} }
if (savegameManager.quickSaveSlot == NULL) if (savegameManager.quickSaveSlot == NULL || savegameManager.quickSaveSlot == (FSaveGameNode*)1)
{ {
M_StartControlPanel(true); M_StartControlPanel(true);
// signal that whatever gets loaded should be the new quicksave // signal that whatever gets loaded should be the new quicksave