[Scummvm-cvs-logs] SF.net SVN: scummvm:[35334] scummvm/trunk/engines/tinsel/tinlib.cpp

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Sat Dec 13 12:18:29 CET 2008


Revision: 35334
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35334&view=rev
Author:   dreammaster
Date:     2008-12-13 11:18:28 +0000 (Sat, 13 Dec 2008)

Log Message:
-----------
Workaround to correctly return control to the player in the DW1 Demo after using the prunes

Modified Paths:
--------------
    scummvm/trunk/engines/tinsel/tinlib.cpp

Modified: scummvm/trunk/engines/tinsel/tinlib.cpp
===================================================================
--- scummvm/trunk/engines/tinsel/tinlib.cpp	2008-12-13 10:24:28 UTC (rev 35333)
+++ scummvm/trunk/engines/tinsel/tinlib.cpp	2008-12-13 11:18:28 UTC (rev 35334)
@@ -5526,6 +5526,11 @@
 		// 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:


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list