diff options
author | Travis Howell | 2006-01-31 02:54:37 +0000 |
---|---|---|
committer | Travis Howell | 2006-01-31 02:54:37 +0000 |
commit | 930ef80e2344783cf5082b7ad82c93600a5f1746 (patch) | |
tree | fbeb4e18f2874579c8b471102c46c0b1d067e900 /scumm | |
parent | 418fd64554c76e81c055dec449980efd0317e9f8 (diff) | |
download | scummvm-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.cpp | 4 |
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 |