Workaround to correctly return control to the player in the DW1 Demo after using the prunes

svn-id: r35334
This commit is contained in:
Paul Gilbert 2008-12-13 11:18:28 +00:00
parent 5f9bbd3444
commit 303d463a50

View File

@ -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: