aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2008-12-13 11:18:28 +0000
committerPaul Gilbert2008-12-13 11:18:28 +0000
commit303d463a503f64c10115ae91e26c231a90989f46 (patch)
tree783fb4df7ce29129aaf9dbec90d2bd3f45027c7a /engines
parent5f9bbd3444fcd0740db12742804679271c2b8daa (diff)
downloadscummvm-rg350-303d463a503f64c10115ae91e26c231a90989f46.tar.gz
scummvm-rg350-303d463a503f64c10115ae91e26c231a90989f46.tar.bz2
scummvm-rg350-303d463a503f64c10115ae91e26c231a90989f46.zip
Workaround to correctly return control to the player in the DW1 Demo after using the prunes
svn-id: r35334
Diffstat (limited to 'engines')
-rw-r--r--engines/tinsel/tinlib.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/tinsel/tinlib.cpp b/engines/tinsel/tinlib.cpp
index 2fd6d33958..788b999142 100644
--- a/engines/tinsel/tinlib.cpp
+++ b/engines/tinsel/tinlib.cpp
@@ -5526,6 +5526,11 @@ int CallLibraryRoutine(CORO_PARAM, int operand, int32 *pp, const INT_CONTEXT *pi
// Common to both DW1 & DW2
pp -= 1; // 2 parameters
WaitTime(coroParam, pp[0], pp[1], pic->escOn, pic->myEscape);
+ if (!coroParam && (pic->hCode == 0x3007540) && (pic->resumeState == RES_2))
+ // FIXME: This is a hack to return control to the user after using the prunes in
+ // the DW1 Demo, since I can't figure out how it's legitimately done
+ Control(CONTROL_ON);
+
return -2;
case WALK: