From 613a203c8a8ac6175988938fbbceaa47ee8b2877 Mon Sep 17 00:00:00 2001 From: Vladimir Menshakov Date: Sun, 19 Jun 2011 16:56:19 +0400 Subject: DREAMWEB: Added crash workaround --- engines/dreamweb/dreamgen.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'engines/dreamweb') diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index 7c9c88136c..d4fb4441f6 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -8302,7 +8302,11 @@ findlenextext: push(bx); push(ax); _sub(cx, bx); + _cmp(cx, 0xffff); + if (flags.z()) + goto _tmp1; _movsb(cx, true); +_tmp1: bx = pop(); _sub(data.word(kExtextpos), bx); si = pop(); @@ -9536,6 +9540,9 @@ void DreamGenContext::selectlocation() { playchannel0(); data.byte(kNewlocation) = 255; select: + _cmp(data.byte(kQuitrequested), 0); + if (!flags.z()) + goto quittravel; delpointer(); readmouse(); showpointer(); -- cgit v1.2.3