aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/dreamweb/use.cpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/engines/dreamweb/use.cpp b/engines/dreamweb/use.cpp
index e5a616e61d..96df77b955 100644
--- a/engines/dreamweb/use.cpp
+++ b/engines/dreamweb/use.cpp
@@ -880,17 +880,11 @@ void DreamGenContext::useObject() {
commandWithOb(data.byte(kCommand), data.byte(kObjecttype), 51);
}
-alreadyuse:
- ax = data.word(kMousebutton);
- _cmp(ax, data.word(kOldbutton));
- if (flags.z())
- return /* (nouse) */;
- _and(ax, 1);
- if (!flags.z())
- goto douse;
- return;
-douse:
- useRoutine();
+ if (data.word(kMousebutton) == data.word(kOldbutton))
+ return; // nouse
+
+ if (data.word(kMousebutton) & 1)
+ useRoutine();
}
} /*namespace dreamgen */