From 1b4b92c0f5d876d9a149a7631383369c11fffcb8 Mon Sep 17 00:00:00 2001 From: Andrew Kurushin Date: Tue, 29 Mar 2005 17:54:53 +0000 Subject: endScene now aborts all running threads (fixing Okk stuckiness on way out of tent) svn-id: r17286 --- saga/script.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'saga/script.h') 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: -- cgit v1.2.3