aboutsummaryrefslogtreecommitdiff
path: root/saga/events.cpp
diff options
context:
space:
mode:
authorAndrew Kurushin2005-01-15 20:12:49 +0000
committerAndrew Kurushin2005-01-15 20:12:49 +0000
commit2f20dd57c2da6507a65811ce14cadb4bef1012ff (patch)
tree43f755456057d2d04cfd74881857754db06d9c06 /saga/events.cpp
parent139f57a29d27a1c148563a7c8f729f7c3b3e4f3e (diff)
downloadscummvm-rg350-2f20dd57c2da6507a65811ce14cadb4bef1012ff.tar.gz
scummvm-rg350-2f20dd57c2da6507a65811ce14cadb4bef1012ff.tar.bz2
scummvm-rg350-2f20dd57c2da6507a65811ce14cadb4bef1012ff.zip
some work in progress on verb stuff:
- many structers and fields renamed to proper names - added missing functions svn-id: r16562
Diffstat (limited to 'saga/events.cpp')
-rw-r--r--saga/events.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/saga/events.cpp b/saga/events.cpp
index a8e43139b7..c3cf7cde05 100644
--- a/saga/events.cpp
+++ b/saga/events.cpp
@@ -258,7 +258,7 @@ int Events::handleImmediate(EVENT *event) {
int Events::handleOneShot(EVENT *event) {
SURFACE *back_buf;
- SCRIPT_THREAD *sthread;
+ ScriptThread *sthread;
Rect rect;
static SCENE_BGINFO bginfo;
@@ -397,7 +397,7 @@ int Events::handleOneShot(EVENT *event) {
case EVENT_EXEC_NONBLOCKING:
debug(0, "Starting start script #%d", event->param);
- sthread = _vm->_script->SThreadCreate();
+ sthread = _vm->_script->createThread();
if (sthread == NULL) {
_vm->_console->DebugPrintf("Thread creation failed.\n");
break;
@@ -408,10 +408,10 @@ int Events::handleOneShot(EVENT *event) {
sthread->threadVars[kVarWithObject] = TO_LE_16(event->param4);
sthread->threadVars[kVarActor] = TO_LE_16(event->param5);
- _vm->_script->SThreadExecute(sthread, event->param);
+ _vm->_script->executeThread(sthread, event->param);
if (event->op == EVENT_EXEC_BLOCKING)
- _vm->_script->SThreadCompleteThread();
+ _vm->_script->completeThread();
break;
case EVENT_THREAD_WAKE: