[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.352,2.353

Gregory Montoir cyx at users.sourceforge.net
Tue Sep 28 14:49:42 CEST 2004


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

Modified Files:
	gfx.cpp 
Log Message:
use the return value of getZPlanes rather that directly accessing _numZBuffer

Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.352
retrieving revision 2.353
diff -u -d -r2.352 -r2.353
--- gfx.cpp	28 Sep 2004 20:19:28 -0000	2.352
+++ gfx.cpp	28 Sep 2004 21:42:34 -0000	2.353
@@ -1396,14 +1396,13 @@
 	}
 	copyVirtScreenBuffers(Common::Rect(vs->w, vs->h));
 
-	if (_numZBuffer <= 1)
+	int numzbuf = getZPlanes(ptr, zplane_list, true);
+	if (numzbuf <= 1)
 		return;
-	
-	getZPlanes(ptr, zplane_list, true);
 
 	uint32 offs;
 	for (int stripnr = 0; stripnr < _numStrips; stripnr++)
-		for (int i = 1; i < _numZBuffer; i++) {
+		for (int i = 1; i < numzbuf; i++) {
 			if (!zplane_list[i])
 				continue;
 





More information about the Scummvm-git-logs mailing list