diff options
author | Adrian Frühwirth | 2018-03-21 21:59:43 +0100 |
---|---|---|
committer | Adrian Frühwirth | 2018-03-21 21:59:43 +0100 |
commit | a86a4e02863823da44961a9c0708eef1cdfd9f42 (patch) | |
tree | beaf43fd24cf5934445e2f949afc5a79a2849bb8 /engines/tucker/tucker.cpp | |
parent | 976d31be6869e9b6e2cd1c941ed0f6aaabf6f12c (diff) | |
download | scummvm-rg350-a86a4e02863823da44961a9c0708eef1cdfd9f42.tar.gz scummvm-rg350-a86a4e02863823da44961a9c0708eef1cdfd9f42.tar.bz2 scummvm-rg350-a86a4e02863823da44961a9c0708eef1cdfd9f42.zip |
TUCKER: Use kLastSaveSlot where appropriate
Diffstat (limited to 'engines/tucker/tucker.cpp')
-rw-r--r-- | engines/tucker/tucker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tucker/tucker.cpp b/engines/tucker/tucker.cpp index fe468a4170..20384933c9 100644 --- a/engines/tucker/tucker.cpp +++ b/engines/tucker/tucker.cpp @@ -1390,7 +1390,7 @@ void TuckerEngine::saveOrLoad() { drawSpeechText(_scrollOffset + 120, 170, _infoBarBuf, 21, 102); } if (_mousePosY > 140) { - if (_mouseWheelUp && _currentSaveLoadGameState < 99) { + if (_mouseWheelUp && _currentSaveLoadGameState < kLastSaveSlot) { ++_currentSaveLoadGameState; _forceRedrawPanelItems = true; return; @@ -1403,7 +1403,7 @@ void TuckerEngine::saveOrLoad() { if (_leftMouseButtonPressed && _mouseClick == 0) { _mouseClick = 1; if (_mousePosX > 228 && _mousePosX < 240 && _mousePosY > 154 && _mousePosY < 170) { - if (_currentSaveLoadGameState < 99) { + if (_currentSaveLoadGameState < kLastSaveSlot) { ++_currentSaveLoadGameState; _forceRedrawPanelItems = true; } |