aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/myst_stacks
diff options
context:
space:
mode:
authorDavid Fioramonti2018-04-21 07:15:34 -0700
committerDavid Fioramonti2018-04-21 07:27:59 -0700
commitbfa97d8f7a87d02eb60ce4198988ef34d791837f (patch)
tree43463491c017bb996ec095bfcdfb55b8b854967a /engines/mohawk/myst_stacks
parent5a1fc8c23039c877fb1bc887631b04a5b93b6d51 (diff)
downloadscummvm-rg350-bfa97d8f7a87d02eb60ce4198988ef34d791837f.tar.gz
scummvm-rg350-bfa97d8f7a87d02eb60ce4198988ef34d791837f.tar.bz2
scummvm-rg350-bfa97d8f7a87d02eb60ce4198988ef34d791837f.zip
MOHAWK: MYST: Make sound receiver hint boundary line up with orig
In the original the sound reciever would provide a hint of the source sound direction when the user was less than 5 degrees away. In ScummVM it was less than or equal to 5 degrees. Now it matches the behavior of the original.
Diffstat (limited to 'engines/mohawk/myst_stacks')
-rw-r--r--engines/mohawk/myst_stacks/selenitic.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mohawk/myst_stacks/selenitic.cpp b/engines/mohawk/myst_stacks/selenitic.cpp
index 6d5aabd4ec..a74f3318f9 100644
--- a/engines/mohawk/myst_stacks/selenitic.cpp
+++ b/engines/mohawk/myst_stacks/selenitic.cpp
@@ -1023,7 +1023,7 @@ uint16 Selenitic::soundReceiverCurrentSound(uint16 source, uint16 position) {
if (sourceEnabled) {
if (position == solution) {
soundId = soundIdGood;
- } else if (position > solution && position <= solution + 50) {
+ } else if (position > solution && position < solution + 50) {
_soundReceiverNearBlinkCounter++;
if (_soundReceiverNearBlinkCounter % 2) {
_soundReceiverLeftButton->drawConditionalDataToScreen(2);
@@ -1031,7 +1031,7 @@ uint16 Selenitic::soundReceiverCurrentSound(uint16 source, uint16 position) {
_soundReceiverLeftButton->drawConditionalDataToScreen(0);
}
soundId = soundIdNear;
- } else if (position < solution && position >= solution - 50) {
+ } else if (position < solution && position > solution - 50) {
_soundReceiverNearBlinkCounter++;
if (_soundReceiverNearBlinkCounter % 2) {
_soundReceiverRightButton->drawConditionalDataToScreen(2);