diff options
author | Alyssa Milburn | 2012-09-07 20:51:17 +0200 |
---|---|---|
committer | Alyssa Milburn | 2012-09-07 20:51:20 +0200 |
commit | 05fbc2876748acecd17f61e3ccec2634edd03a0c (patch) | |
tree | df8b7a01391974b8a9f82928204b5a57ff3f8adf | |
parent | d6be917808b6e6fabb40b6a78c7811b7673d0eb5 (diff) | |
download | scummvm-rg350-05fbc2876748acecd17f61e3ccec2634edd03a0c.tar.gz scummvm-rg350-05fbc2876748acecd17f61e3ccec2634edd03a0c.tar.bz2 scummvm-rg350-05fbc2876748acecd17f61e3ccec2634edd03a0c.zip |
TONY: Wait for events to pulse in 'threads'.
This fixes some missing animations, which weren't getting an
opportunity to start.
-rw-r--r-- | engines/tony/mpal/mpal.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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. |