[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.345,2.346
Max Horn
fingolfin at users.sourceforge.net
Mon Sep 27 14:13:30 CEST 2004
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9285
Modified Files:
gfx.cpp
Log Message:
Looking at my code transformations again, numstrip could in theory become negative, so strengthen the loop condition to catch that case
Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.345
retrieving revision 2.346
diff -u -d -r2.345 -r2.346
--- gfx.cpp 27 Sep 2004 20:44:25 -0000 2.345
+++ gfx.cpp 27 Sep 2004 21:07:27 -0000 2.346
@@ -1218,7 +1218,7 @@
}
// FIXME Still not been calculated correctly
- while (numstrip && sx < _numStrips && x * 8 < MAX(_vm->_roomWidth, (int) vs->w)) {
+ while (numstrip > 0 && sx < _numStrips && x * 8 < MAX(_vm->_roomWidth, (int) vs->w)) {
CHECK_HEAP;
if (y < vs->tdirty[sx])
More information about the Scummvm-git-logs
mailing list