aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/star_control/star_control.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/star_control/star_control.cpp')
-rw-r--r--engines/titanic/star_control/star_control.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/titanic/star_control/star_control.cpp b/engines/titanic/star_control/star_control.cpp
index 06ab3d363a..b58a5408c7 100644
--- a/engines/titanic/star_control/star_control.cpp
+++ b/engines/titanic/star_control/star_control.cpp
@@ -136,16 +136,16 @@ void CStarControl::newFrame() {
_petControl = getPetControl();
if (_petControl) {
- int val1 = _starField.getMatchedIndex();
- int val2 = 0;
+ int matchIndex = _starField.getMatchedIndex();
+ bool isClose = false;
if (_starField.getMode() == MODE_STARFIELD) {
- val2 = _starField.get5();
- if ((val1 + 2) == _starField.getMarkerCount())
- val2 = 0;
+ isClose = _starField.isCloseToMarker();
+ if ((matchIndex + 2) != _starField.getMarkerCount())
+ isClose = false;
}
- _petControl->starsSetButtons(val1, val2);
+ _petControl->starsSetButtons(matchIndex, isClose);
}
}