mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-24 15:00:24 +02:00
Don't execute script thread now if paused
This commit is contained in:
2 files changed
+12
-3
No files matched your search
@@ -2311,8 +2311,7 @@ str ScriptThread::FileName(void)
|
||||
void ScriptThread::StartedWaitFor(void)
|
||||
{
|
||||
Stop();
|
||||
|
||||
m_ScriptVM->m_ThreadState = THREAD_SUSPENDED;
|
||||
StartWaiting();
|
||||
m_ScriptVM->Suspend();
|
||||
}
|
||||
|
||||
@@ -2418,6 +2417,15 @@ void ScriptThread::Execute(ScriptVariable *data, int dataSize)
|
||||
ScriptExecuteInternal(data, dataSize);
|
||||
}
|
||||
|
||||
void ScriptThread::Execute()
|
||||
{
|
||||
if (Director.iPaused > 0) {
|
||||
StartTiming();
|
||||
} else {
|
||||
ScriptExecuteInternal(NULL, 0);
|
||||
}
|
||||
}
|
||||
|
||||
ScriptThread *ScriptThread::CreateThreadInternal(const ScriptVariable& label)
|
||||
{
|
||||
return m_ScriptVM->GetScriptClass()->CreateThreadInternal(label);
|
||||
|
||||
Reference in new issue
Block a user