diff options
-rw-r--r-- | engines/dreamweb/stubs.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index cd5fab9637..5a769e05b5 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -2229,20 +2229,19 @@ void DreamGenContext::enterSymbol() { } void DreamGenContext::zoomOnOff() { - if (data.word(kWatchingtime) != 0) { - blank(); - return; - } - if (data.byte(kPointermode) == 2) { + if (data.word(kWatchingtime) != 0 || data.byte(kPointermode) == 2) { blank(); return; } + if (data.byte(kCommandtype) != 222) { data.byte(kCommandtype) = 222; commandOnly(39); } - if (!(data.word(kMousebutton) & 1) || data.word(kOldbutton) == 1) + + if (!(data.word(kMousebutton) & 1) || (data.word(kMousebutton) == data.word(kOldbutton))) return; + data.byte(kZoomon) ^= 1; createPanel(); data.byte(kNewobs) = 0; |