aboutsummaryrefslogtreecommitdiff
path: root/engines/tucker
diff options
context:
space:
mode:
authorAdrian Frühwirth2018-03-21 21:59:43 +0100
committerAdrian Frühwirth2018-03-21 21:59:43 +0100
commita86a4e02863823da44961a9c0708eef1cdfd9f42 (patch)
treebeaf43fd24cf5934445e2f949afc5a79a2849bb8 /engines/tucker
parent976d31be6869e9b6e2cd1c941ed0f6aaabf6f12c (diff)
downloadscummvm-rg350-a86a4e02863823da44961a9c0708eef1cdfd9f42.tar.gz
scummvm-rg350-a86a4e02863823da44961a9c0708eef1cdfd9f42.tar.bz2
scummvm-rg350-a86a4e02863823da44961a9c0708eef1cdfd9f42.zip
TUCKER: Use kLastSaveSlot where appropriate
Diffstat (limited to 'engines/tucker')
-rw-r--r--engines/tucker/tucker.cpp4
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;
}