[Scummvm-cvs-logs] scummvm master -> 05fbc2876748acecd17f61e3ccec2634edd03a0c

fuzzie fuzzie at fuzzie.org
Fri Sep 7 21:03:09 CEST 2012


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
05fbc28767 TONY: Wait for events to pulse in 'threads'.


Commit: 05fbc2876748acecd17f61e3ccec2634edd03a0c
    https://github.com/scummvm/scummvm/commit/05fbc2876748acecd17f61e3ccec2634edd03a0c
Author: Alyssa Milburn (fuzzie at fuzzie.org)
Date: 2012-09-07T11:51:20-07:00

Commit Message:
TONY: Wait for events to pulse in 'threads'.

This fixes some missing animations, which weren't getting an
opportunity to start.

Changed paths:
    engines/tony/mpal/mpal.cpp



diff --git a/engines/tony/mpal/mpal.cpp b/engines/tony/mpal/mpal.cpp
index e996420..8d83363 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.






More information about the Scummvm-git-logs mailing list