From 202cf3ae0b78a965d06a93ff1cb09311170f4eeb Mon Sep 17 00:00:00 2001 From: Bertrand Augereau Date: Sun, 4 Dec 2011 19:55:22 +0100 Subject: DREAMWEB: 'DOSReturn' cleanup --- engines/dreamweb/stubs.cpp | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'engines') 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() { -- cgit v1.2.3