diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-12-28 19:48:30 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-12-28 19:48:30 +0100 |
commit | 5ebcef2718f8e5152570ac83a8c3ad27ef62b324 (patch) | |
tree | 5ede2e80ad85efedcdc408e9a7681a5f7fd0a514 /src | |
parent | Add shadow to subtitles with cutscene borders off (diff) | |
download | re3-5ebcef2718f8e5152570ac83a8c3ad27ef62b324.tar re3-5ebcef2718f8e5152570ac83a8c3ad27ef62b324.tar.gz re3-5ebcef2718f8e5152570ac83a8c3ad27ef62b324.tar.bz2 re3-5ebcef2718f8e5152570ac83a8c3ad27ef62b324.tar.lz re3-5ebcef2718f8e5152570ac83a8c3ad27ef62b324.tar.xz re3-5ebcef2718f8e5152570ac83a8c3ad27ef62b324.tar.zst re3-5ebcef2718f8e5152570ac83a8c3ad27ef62b324.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/Frontend.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/Frontend.cpp b/src/core/Frontend.cpp index f803557f..68815514 100644 --- a/src/core/Frontend.cpp +++ b/src/core/Frontend.cpp @@ -4595,8 +4595,8 @@ CMenuManager::ProcessUserInput(uint8 goDown, uint8 goUp, uint8 optionSelected, u { int saveSlot = aScreens[m_nCurrScreen].m_aEntries[m_nCurrOption].m_SaveSlot; - if (saveSlot >= 2 && saveSlot <= 9) { - m_nCurrSaveSlot = saveSlot - 2; + if (saveSlot >= SAVESLOT_1 && saveSlot <= SAVESLOT_8) { + m_nCurrSaveSlot = saveSlot - SAVESLOT_1; if (Slots[m_nCurrSaveSlot] != SLOT_EMPTY && Slots[m_nCurrSaveSlot] != SLOT_CORRUPTED) { if (m_nCurrScreen == MENUPAGE_CHOOSE_LOAD_SLOT) { SwitchToNewScreen(MENUPAGE_LOAD_SLOT_CONFIRM); @@ -4829,7 +4829,7 @@ CMenuManager::ProcessUserInput(uint8 goDown, uint8 goUp, uint8 optionSelected, u if (!goBack) { int saveSlot = aScreens[m_nCurrScreen].m_aEntries[m_nCurrOption].m_SaveSlot; - if (saveSlot >= 2 && saveSlot <= 9 && Slots[m_nCurrOption] != SLOT_OK) + if (saveSlot >= SAVESLOT_1 && saveSlot <= SAVESLOT_8 && Slots[m_nCurrOption] != SLOT_OK) DMAudio.PlayFrontEndSound(SOUND_FRONTEND_FAIL, 0); else DMAudio.PlayFrontEndSound(SOUND_FRONTEND_ENTER_OR_ADJUST, 0); |