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

Pawel Kolodziejski aquadran at users.sourceforge.net
Sat Aug 13 04:08:19 CEST 2005


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

Modified Files:
	ltask.cpp 
Log Message:
fix nasty task bug. no longer infinite loop when task is paused. that also fix menu scripts handling

Index: ltask.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/lua/ltask.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- ltask.cpp	12 Aug 2005 21:54:10 -0000	1.11
+++ ltask.cpp	13 Aug 2005 11:07:15 -0000	1.12
@@ -248,8 +248,10 @@
 	while ((t = prev->next) != NULL) {
 		luaI_switchtask(t);
 		// Tstate is not available until after switching tasks
-		if (t->Tstate == PAUSE)
+		if (t->Tstate == PAUSE) {
+			prev = t;
 			continue;
+		}
 		L->errorJmp = &myErrorJmp;
 		L->Tstate = RUN;
 		if (setjmp(myErrorJmp) == 0) {





More information about the Scummvm-git-logs mailing list