[Scummvm-cvs-logs] CVS: residual/lua ltask.cpp,1.9,1.10
Pawel Kolodziejski
aquadran at users.sourceforge.net
Fri Aug 12 14:53:09 CEST 2005
Update of /cvsroot/scummvm/residual/lua
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14252
Modified Files:
ltask.cpp
Log Message:
indent, fix in (un)pause_scripts
Index: ltask.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/lua/ltask.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- ltask.cpp 1 Aug 2005 03:49:02 -0000 1.9
+++ ltask.cpp 12 Aug 2005 21:52:04 -0000 1.10
@@ -11,7 +11,7 @@
struct lua_Task *t;
for (t = L->root_task->next; t != NULL; t = t->next) {
- if (t->Tstate != DONE)
+ if (L->curr_task != t)
t->Tstate = PAUSE;
}
}
@@ -20,7 +20,7 @@
struct lua_Task *t;
for (t = L->root_task->next; t != NULL; t = t->next) {
- if (t->Tstate == PAUSE)
+ if (L->curr_task != t)
t->Tstate = YIELD;
}
}
@@ -150,18 +150,18 @@
lua_error("Bad argument to identify_script");
}
- int taskId = (int)nvalue(f);
+ int taskId = (int)nvalue(f);
for (t = L->root_task->next; t != NULL; t = t->next) {
- if (t->id == taskId)
- break;
- }
+ if (t->id == taskId)
+ break;
+ }
- if ((t == NULL) || (t->Tstate == DONE)) {
- ttype(L->stack.top) = LUA_T_NIL;
- } else {
- *L->stack.top = *t->stack.stack;
- }
- incr_top;
+ if ((t == NULL) || (t->Tstate == DONE)) {
+ ttype(L->stack.top) = LUA_T_NIL;
+ } else {
+ *L->stack.top = *t->stack.stack;
+ }
+ incr_top;
}
void find_script (void) {
More information about the Scummvm-git-logs
mailing list