aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2006-01-31 02:54:37 +0000
committerTravis Howell2006-01-31 02:54:37 +0000
commit930ef80e2344783cf5082b7ad82c93600a5f1746 (patch)
treefbeb4e18f2874579c8b471102c46c0b1d067e900 /scumm
parent418fd64554c76e81c055dec449980efd0317e9f8 (diff)
downloadscummvm-rg350-930ef80e2344783cf5082b7ad82c93600a5f1746.tar.gz
scummvm-rg350-930ef80e2344783cf5082b7ad82c93600a5f1746.tar.bz2
scummvm-rg350-930ef80e2344783cf5082b7ad82c93600a5f1746.zip
A scale of zero should be ignored.
svn-id: r20324
Diffstat (limited to 'scumm')
-rw-r--r--scumm/wiz_he.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/wiz_he.cpp b/scumm/wiz_he.cpp
index 576c0394eb..18efc5b94c 100644
--- a/scumm/wiz_he.cpp
+++ b/scumm/wiz_he.cpp
@@ -133,7 +133,7 @@ void Wiz::polygonTransform(int resNum, int state, int po_x, int po_y, int angle,
}
// 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 @@ void Wiz::polygonTransform(int resNum, int state, int po_x, int po_y, int angle,
}
// rotate
- if (angle)
+ if (angle != 0)
polygonRotatePoints(pts, 4, angle);
// translate