diff options
author | Andrew Kurushin | 2005-03-29 17:54:53 +0000 |
---|---|---|
committer | Andrew Kurushin | 2005-03-29 17:54:53 +0000 |
commit | 1b4b92c0f5d876d9a149a7631383369c11fffcb8 (patch) | |
tree | 3e165f98f779345d1d584be87071cd860bbc3da0 /saga/script.h | |
parent | ba98e11eb1d9b89b607644e32ea102379c312cb4 (diff) | |
download | scummvm-rg350-1b4b92c0f5d876d9a149a7631383369c11fffcb8.tar.gz scummvm-rg350-1b4b92c0f5d876d9a149a7631383369c11fffcb8.tar.bz2 scummvm-rg350-1b4b92c0f5d876d9a149a7631383369c11fffcb8.zip |
endScene now aborts all running threads (fixing Okk stuckiness on way out of tent)
svn-id: r17286
Diffstat (limited to 'saga/script.h')
-rw-r--r-- | saga/script.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/saga/script.h b/saga/script.h index 10be3ce886..4cb99f99c0 100644 --- a/saga/script.h +++ b/saga/script.h @@ -427,6 +427,7 @@ public: int executeThreads(uint msec); int SThreadDebugStep(); void completeThread(void); + void abortAllThreads(void); void wakeUpActorThread(int waitType, void *threadObj); void wakeUpThreads(int waitType); @@ -436,7 +437,8 @@ private: void loadModuleBase(ModuleData &module, const byte *resourcePointer, size_t resourceLength); void loadModuleVoiceLUT(ModuleData &module, const byte *resourcePointer, size_t resourceLength); - void runThread(ScriptThread *thread, uint instructionLimit); + // runThread returns true if we should break running of other threads + bool runThread(ScriptThread *thread, uint instructionLimit); void setThreadEntrypoint(ScriptThread *thread, int entrypointNumber); public: |