aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel/effect.cpp
diff options
context:
space:
mode:
authorMax Horn2008-07-24 08:59:17 +0000
committerMax Horn2008-07-24 08:59:17 +0000
commit69dac1d4f22f9a63a5a9030d4405ba071e5e8b89 (patch)
tree82f7bd95c3a03b3d4e363e26eecdc36fe3e8b600 /engines/tinsel/effect.cpp
parent627e0c277426b02153b79c82616ae7f351ad5bc3 (diff)
downloadscummvm-rg350-69dac1d4f22f9a63a5a9030d4405ba071e5e8b89.tar.gz
scummvm-rg350-69dac1d4f22f9a63a5a9030d4405ba071e5e8b89.tar.bz2
scummvm-rg350-69dac1d4f22f9a63a5a9030d4405ba071e5e8b89.zip
Moved scheduler / process managment code into a new class Scheduler
svn-id: r33259
Diffstat (limited to 'engines/tinsel/effect.cpp')
-rw-r--r--engines/tinsel/effect.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/tinsel/effect.cpp b/engines/tinsel/effect.cpp
index b75e186c74..91645da71b 100644
--- a/engines/tinsel/effect.cpp
+++ b/engines/tinsel/effect.cpp
@@ -56,12 +56,12 @@ struct EP_INIT {
* actor to leave that polygon. Then runs the polygon's Glitter code
* with LEAVE event.
*/
-static void EffectProcess(CORO_PARAM) {
+static void EffectProcess(CORO_PARAM, const void *param) {
// COROUTINE
CORO_BEGIN_CONTEXT;
CORO_END_CONTEXT(_ctx);
- EP_INIT *to = (EP_INIT *)ProcessGetParamsSelf(); // get the stuff copied to process when it was created
+ EP_INIT *to = (EP_INIT *)param; // get the stuff copied to process when it was created
CORO_BEGIN_CODE(_ctx);
@@ -102,7 +102,7 @@ static void FettleEffectPolys(int x, int y, int index, PMACTOR pActor) {
epi.hEpoly = hPoly;
epi.pActor = pActor;
epi.index = index;
- ProcessCreate(PID_TCODE, EffectProcess, &epi, sizeof(epi));
+ g_scheduler->createProcess(PID_TCODE, EffectProcess, &epi, sizeof(epi));
}
}
}
@@ -110,7 +110,7 @@ static void FettleEffectPolys(int x, int y, int index, PMACTOR pActor) {
/**
* Just calls FettleEffectPolys() every clock tick.
*/
-void EffectPolyProcess(CORO_PARAM) {
+void EffectPolyProcess(CORO_PARAM, const void *param) {
// COROUTINE
CORO_BEGIN_CONTEXT;
CORO_END_CONTEXT(_ctx);