From 05fbc2876748acecd17f61e3ccec2634edd03a0c Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Fri, 7 Sep 2012 20:51:17 +0200 Subject: TONY: Wait for events to pulse in 'threads'. This fixes some missing animations, which weren't getting an opportunity to start. --- engines/tony/mpal/mpal.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'engines/tony') diff --git a/engines/tony/mpal/mpal.cpp b/engines/tony/mpal/mpal.cpp index e9964203c8..8d83363c24 100644 --- a/engines/tony/mpal/mpal.cpp +++ b/engines/tony/mpal/mpal.cpp @@ -642,6 +642,9 @@ void ScriptThread(CORO_PARAM, const void *param) { CORO_KILL_SELF(); return; } + + // WORKAROUND: Wait for events to pulse. + CORO_SLEEP(1); } } @@ -710,6 +713,9 @@ void ActionThread(CORO_PARAM, const void *param) { GLOBALS._mpalError = 1; break; } + + // WORKAROUND: Wait for events to pulse. + CORO_SLEEP(1); } globalDestroy(_ctx->item); @@ -1121,6 +1127,9 @@ void GroupThread(CORO_PARAM, const void *param) { CORO_KILL_SELF(); return; } + + // WORKAROUND: Wait for events to pulse. + CORO_SLEEP(1); } // The gruop is finished, so we can return to the calling function. -- cgit v1.2.3