[Scummvm-cvs-logs] CVS: residual/lua ltask.cpp,1.10,1.11

Pawel Kolodziejski aquadran at users.sourceforge.net
Fri Aug 12 14:56:07 CEST 2005


Update of /cvsroot/scummvm/residual/lua
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14660

Modified Files:
	ltask.cpp 
Log Message:
keep state != DONE as before

Index: ltask.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/lua/ltask.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- ltask.cpp	12 Aug 2005 21:52:04 -0000	1.10
+++ ltask.cpp	12 Aug 2005 21:54:10 -0000	1.11
@@ -11,7 +11,7 @@
 	struct lua_Task *t;
 
 	for (t = L->root_task->next; t != NULL; t = t->next) {
-		if (L->curr_task != t)
+		if ((L->curr_task != t) && (t->Tstate != DONE))
 			t->Tstate = PAUSE;
 	}
 }
@@ -20,7 +20,7 @@
 	struct lua_Task *t;
 
 	for (t = L->root_task->next; t != NULL; t = t->next) {
-		if (L->curr_task != t)
+		if ((L->curr_task != t) && (t->Tstate != DONE))
 			t->Tstate = YIELD;
 	}
 }





More information about the Scummvm-git-logs mailing list