aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/stubs.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2011-12-06 17:08:53 +0200
committerFilippos Karapetis2011-12-06 17:08:53 +0200
commitb273726df14e07d02860bc264b8e7150f3b01324 (patch)
tree417b9e1f03d206dda25cddc38b13e7d86850fc55 /engines/dreamweb/stubs.cpp
parentd4f845524e72bd9887eaa4fdf01f1fc12ef41860 (diff)
downloadscummvm-rg350-b273726df14e07d02860bc264b8e7150f3b01324.tar.gz
scummvm-rg350-b273726df14e07d02860bc264b8e7150f3b01324.tar.bz2
scummvm-rg350-b273726df14e07d02860bc264b8e7150f3b01324.zip
DREAMWEB: Fixed mouse button checks (thanks wjp)
Diffstat (limited to 'engines/dreamweb/stubs.cpp')
-rw-r--r--engines/dreamweb/stubs.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index 6786ba48a7..313fec62a4 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -2241,9 +2241,7 @@ void DreamGenContext::zoomOnOff() {
data.byte(kCommandtype) = 222;
commandOnly(39);
}
- if (data.word(kMousebutton) == data.word(kOldbutton))
- return;
- if ((data.word(kMousebutton) & 1) == 0)
+ if (!(data.word(kMousebutton) & 1) || (data.word(kMousebutton) == data.word(kOldbutton)))
return;
data.byte(kZoomon) ^= 1;
createPanel();
@@ -3688,7 +3686,7 @@ void DreamGenContext::nextDest() {
commandOnly(28);
}
- if ((data.word(kMousebutton) & 1) || (data.word(kMousebutton) == data.word(kOldbutton)))
+ if (!(data.word(kMousebutton) & 1) || (data.word(kMousebutton) == data.word(kOldbutton)))
return; // nodu
do {
@@ -3719,7 +3717,7 @@ void DreamGenContext::lastDest() {
commandOnly(29);
}
- if ((data.word(kMousebutton) & 1) || (data.word(kMousebutton) == data.word(kOldbutton)))
+ if (!(data.word(kMousebutton) & 1) || (data.word(kMousebutton) == data.word(kOldbutton)))
return; // nodd
do {
@@ -3750,7 +3748,7 @@ void DreamGenContext::destSelect() {
commandOnly(30);
}
- if ((data.word(kMousebutton) & 1) || (data.word(kMousebutton) == data.word(kOldbutton)))
+ if (!(data.word(kMousebutton) & 1) || (data.word(kMousebutton) == data.word(kOldbutton)))
return; // notrav
getDestInfo();