diff options
author | Joost Peters | 2009-02-02 12:36:41 +0000 |
---|---|---|
committer | Joost Peters | 2009-02-02 12:36:41 +0000 |
commit | 1bd7520e12b3ffefaf2f426d91d03c8e7346216a (patch) | |
tree | 0155c8c8ae9cc97c69245432d85f91b088161e51 | |
parent | 00e5b84f9fc18af7b14dee52a24414a68a1d6ad0 (diff) | |
download | scummvm-rg350-1bd7520e12b3ffefaf2f426d91d03c8e7346216a.tar.gz scummvm-rg350-1bd7520e12b3ffefaf2f426d91d03c8e7346216a.tar.bz2 scummvm-rg350-1bd7520e12b3ffefaf2f426d91d03c8e7346216a.zip |
more endian fixes
svn-id: r36197
-rw-r--r-- | engines/tinsel/sched.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/tinsel/sched.cpp b/engines/tinsel/sched.cpp index 8ced3ba9c0..b7cfb22473 100644 --- a/engines/tinsel/sched.cpp +++ b/engines/tinsel/sched.cpp @@ -562,7 +562,7 @@ void RestoreSceneProcess(INT_CONTEXT *pic) { pStruc = (PROCESS_STRUC *)LockMem(hSceneProcess); for (i = 0; i < numSceneProcess; i++) { - if (pStruc[i].hProcessCode == pic->hCode) { + if (FROM_LE_32(pStruc[i].hProcessCode) == pic->hCode) { g_scheduler->createProcess(PID_PROCESS + i, RestoredProcessProcess, &pic, sizeof(pic)); break; @@ -590,11 +590,11 @@ void SceneProcessEvent(CORO_PARAM, uint32 procID, TINSEL_EVENT event, bool bWait _ctx->pStruc = (PROCESS_STRUC *)LockMem(hSceneProcess); for (i = 0; i < numSceneProcess; i++) { - if (_ctx->pStruc[i].processId == procID) { + if (FROM_LE_32(_ctx->pStruc[i].processId) == procID) { assert(_ctx->pStruc[i].hProcessCode); // Must have some code to run _ctx->pic = InitInterpretContext(GS_PROCESS, - _ctx->pStruc[i].hProcessCode, + FROM_LE_32(_ctx->pStruc[i].hProcessCode), event, NOPOLY, // No polygon 0, // No actor @@ -629,7 +629,7 @@ void KillSceneProcess(uint32 procID) { pStruc = (PROCESS_STRUC *) LockMem(hSceneProcess); for (i = 0; i < numSceneProcess; i++) { - if (pStruc[i].processId == procID) { + if (FROM_LE_32(pStruc[i].processId) == procID) { g_scheduler->killMatchingProcess(PID_PROCESS + i, -1); break; } |