[Scummvm-cvs-logs] CVS: scummvm/scumm wiz_he.cpp,2.119,2.120
kirben
kirben at users.sourceforge.net
Mon Jan 30 18:55:05 CET 2006
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25762/scumm
Modified Files:
wiz_he.cpp
Log Message:
A scale of zero should be ignored.
Index: wiz_he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/wiz_he.cpp,v
retrieving revision 2.119
retrieving revision 2.120
diff -u -d -r2.119 -r2.120
--- wiz_he.cpp 31 Jan 2006 02:19:14 -0000 2.119
+++ wiz_he.cpp 31 Jan 2006 02:54:37 -0000 2.120
@@ -133,7 +133,7 @@
}
// scale
- if (scale != 256) {
+ if (scale != 0 && scale != 256) {
for (int i = 0; i < 4; ++i) {
pts[i].x = pts[i].x * scale / 256;
pts[i].y = pts[i].y * scale / 256;
@@ -141,7 +141,7 @@
}
// rotate
- if (angle)
+ if (angle != 0)
polygonRotatePoints(pts, 4, angle);
// translate
More information about the Scummvm-git-logs
mailing list