aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorBertrand Augereau2011-12-04 19:55:22 +0100
committerBertrand Augereau2011-12-04 19:55:22 +0100
commit202cf3ae0b78a965d06a93ff1cb09311170f4eeb (patch)
treed4cfc3de16231f2ff9dfa25c0f5a399f53135362 /engines
parent060ea998c62a5d4dda7536907ba7b56bcdc3d2e5 (diff)
downloadscummvm-rg350-202cf3ae0b78a965d06a93ff1cb09311170f4eeb.tar.gz
scummvm-rg350-202cf3ae0b78a965d06a93ff1cb09311170f4eeb.tar.bz2
scummvm-rg350-202cf3ae0b78a965d06a93ff1cb09311170f4eeb.zip
DREAMWEB: 'DOSReturn' cleanup
Diffstat (limited to 'engines')
-rw-r--r--engines/dreamweb/stubs.cpp17
1 files changed, 6 insertions, 11 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index 4c3115fd7b..0e10127124 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -1143,20 +1143,15 @@ void DreamGenContext::loadSeg() {
}
void DreamGenContext::DOSReturn() {
- _cmp(data.byte(kCommandtype), 250);
- if (!flags.z()) {
+ if (data.byte(kCommandtype) != 250) {
data.byte(kCommandtype) = 250;
- al = 46;
- commandOnly();
+ commandOnly(46);
}
- ax = data.word(kMousebutton);
- _and(ax, 1);
- if (flags.z())
- return;
-
- data.word(kMousebutton) = 0;
- engine->quit();
+ if (data.word(kMousebutton) & 1) {
+ data.word(kMousebutton) = 0;
+ engine->quit();
+ }
}
void DreamGenContext::set16ColPalette() {