[Scummvm-cvs-logs] CVS: tools descumm-common.cpp,1.12,1.13

Max Horn fingolfin at users.sourceforge.net
Fri Oct 1 13:58:27 CEST 2004


Update of /cvsroot/scummvm/tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28903

Modified Files:
	descumm-common.cpp 
Log Message:
update comment

Index: descumm-common.cpp
===================================================================
RCS file: /cvsroot/scummvm/tools/descumm-common.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- descumm-common.cpp	1 Oct 2004 20:09:31 -0000	1.12
+++ descumm-common.cpp	1 Oct 2004 20:50:56 -0000	1.13
@@ -217,8 +217,9 @@
 	if (cur != p->to)
 		return false;								/* We have no prevoius if that is exiting right at the end of this goto */
 
-	/* Don't jump out of previous blocks. This test is stronger than the one in
-	   maybeAddIf. ( >= vs > ) */
+	// Don't jump out of previous blocks. In addition, don't jump "onto"
+	// the end of a while loop, as that would lead to incorrect output.
+	// This test is stronger than the one in maybeAddIf.
 	for (i = 0, p = block_stack; i < num_block_stack - 1; i++, p++) {
 		if (to > p->to || (to == p->to && p->isWhile))
 			return false;





More information about the Scummvm-git-logs mailing list