diff options
author | Filippos Karapetis | 2011-12-06 17:42:50 +0200 |
---|---|---|
committer | Filippos Karapetis | 2011-12-06 17:42:50 +0200 |
commit | ddddce37288c0b72a1194049ce2b882de17cfd3d (patch) | |
tree | 5991bfe4431e22dabb0807e3c9b0f73d634683d6 /engines/dreamweb | |
parent | 6002e1a7ab64dab430449291c41159ae86a1d88b (diff) | |
download | scummvm-rg350-ddddce37288c0b72a1194049ce2b882de17cfd3d.tar.gz scummvm-rg350-ddddce37288c0b72a1194049ce2b882de17cfd3d.tar.bz2 scummvm-rg350-ddddce37288c0b72a1194049ce2b882de17cfd3d.zip |
DREAMWEB: Simplified mouse button checks (thanks wjp, Tron)
Diffstat (limited to 'engines/dreamweb')
-rw-r--r-- | engines/dreamweb/stubs.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index ea39e00cc4..cd5fab9637 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -2241,7 +2241,7 @@ void DreamGenContext::zoomOnOff() { data.byte(kCommandtype) = 222; commandOnly(39); } - if (!(data.word(kMousebutton) & 1) || (data.word(kMousebutton) == data.word(kOldbutton))) + if (!(data.word(kMousebutton) & 1) || data.word(kOldbutton) == 1) return; data.byte(kZoomon) ^= 1; createPanel(); @@ -3686,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(kOldbutton) == 1) return; // nodu do { @@ -3717,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(kOldbutton) == 1) return; // nodd do { @@ -3748,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(kOldbutton) == 1) return; // notrav getDestInfo(); |