mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 17:41:19 +00:00
- Fixed savegame slot selection for real: wrong check and ancient bug.
This commit is contained in:
parent
974d11a161
commit
400444f7df
2 changed files with 5 additions and 2 deletions
|
@ -847,6 +847,8 @@ UNSAFE_CCMD (save)
|
|||
return;
|
||||
}
|
||||
|
||||
doquicksave = false;
|
||||
|
||||
FString fname;
|
||||
for (int i = 0;; ++i)
|
||||
{
|
||||
|
|
|
@ -372,7 +372,7 @@ void FSavegameManager::NotifyNewSave(const FString &file, const FString &title,
|
|||
{
|
||||
if (quickSaveSlot == nullptr || quickSaveSlot == (FSaveGameNode*)1 || forceQuicksave) quickSaveSlot = node;
|
||||
}
|
||||
if (!strstr(node->SaveTitle.GetChars(),"auto")) LastAccessed = LastSaved = i;
|
||||
if (!strstr(node->SaveTitle.GetChars(),"Autosave")) LastAccessed = LastSaved = i;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -388,7 +388,8 @@ void FSavegameManager::NotifyNewSave(const FString &file, const FString &title,
|
|||
{
|
||||
if (quickSaveSlot == nullptr || quickSaveSlot == (FSaveGameNode*)1 || forceQuicksave) quickSaveSlot = node;
|
||||
}
|
||||
if (!strstr(node->SaveTitle.GetChars(),"auto")) LastAccessed = LastSaved = index;
|
||||
if (!strstr(node->SaveTitle.GetChars(),"Autosave")) LastAccessed = LastSaved = index;
|
||||
else LastAccessed = ++LastSaved;
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
|
Loading…
Reference in a new issue