diff --git a/engines/tinsel/play.cpp b/engines/tinsel/play.cpp
index 54281c9..103b8f4 100644
a
|
b
|
static void SoundReel(CORO_PARAM, SCNHANDLE hFilm, int column, int speed,
|
376 | 376 | CORO_END_CODE; |
377 | 377 | } |
378 | 378 | |
379 | | static void ResSoundReel(CORO_PARAM, const void *) { |
| 379 | static void ResSoundReel(CORO_PARAM, const void *param) { |
380 | 380 | // get the stuff copied to process when it was created |
381 | | PPROCESS pProc = g_scheduler->getCurrentProcess(); |
382 | | int i = *(int *)pProc->param; |
| 381 | int i = *(const int *)param; |
383 | 382 | |
384 | 383 | CORO_BEGIN_CONTEXT; |
385 | 384 | CORO_END_CONTEXT(_ctx); |
diff --git a/engines/tinsel/sched.cpp b/engines/tinsel/sched.cpp
index c081ff6..d8a4494 100644
a
|
b
|
void Scheduler::setResourceCallback(VFPTRPP pFunc) {
|
508 | 508 | /** |
509 | 509 | * The code for for restored scene processes. |
510 | 510 | */ |
511 | | static void RestoredProcessProcess(CORO_PARAM, const void *) { |
| 511 | static void RestoredProcessProcess(CORO_PARAM, const void *param) { |
512 | 512 | CORO_BEGIN_CONTEXT; |
513 | 513 | INT_CONTEXT *pic; |
514 | 514 | CORO_END_CONTEXT(_ctx); |
515 | 515 | |
516 | 516 | CORO_BEGIN_CODE(_ctx); |
517 | 517 | |
518 | | PROCESS *pProc; // this process pointer |
519 | | |
520 | 518 | // get the stuff copied to process when it was created |
521 | | pProc = g_scheduler->getCurrentProcess(); |
522 | | _ctx->pic = *((INT_CONTEXT **) pProc->param); |
| 519 | _ctx->pic = *(const PINT_CONTEXT *)param; |
523 | 520 | |
524 | 521 | _ctx->pic = RestoreInterpretContext(_ctx->pic); |
525 | | AttachInterpret(_ctx->pic, pProc); |
| 522 | AttachInterpret(_ctx->pic, g_scheduler->getCurrentProcess()); |
526 | 523 | |
527 | 524 | CORO_INVOKE_1(Interpret, _ctx->pic); |
528 | 525 | |
… |
… |
static void RestoredProcessProcess(CORO_PARAM, const void *) {
|
532 | 529 | /** |
533 | 530 | * Process Tinsel Process |
534 | 531 | */ |
535 | | static void ProcessTinselProcess(CORO_PARAM, const void *) { |
536 | | PPROCESS pProc = g_scheduler->getCurrentProcess(); |
537 | | PINT_CONTEXT *pPic = (PINT_CONTEXT *) pProc->param; |
| 532 | static void ProcessTinselProcess(CORO_PARAM, const void *param) { |
| 533 | const PINT_CONTEXT *pPic = (const PINT_CONTEXT *)param; |
538 | 534 | |
539 | 535 | CORO_BEGIN_CONTEXT; |
540 | 536 | CORO_END_CONTEXT(_ctx); |