aboutsummaryrefslogtreecommitdiff
path: root/scumm/wiz_he.cpp
diff options
context:
space:
mode:
authorTravis Howell2005-04-12 06:06:56 +0000
committerTravis Howell2005-04-12 06:06:56 +0000
commit03f07f7f8ab1844fd8e197d607b6e4203f4d5f3a (patch)
tree3287274a9baafbcfcdafe0fa20d133e7c919142a /scumm/wiz_he.cpp
parentfefd65c33c33606da3076ce040c33266b5875154 (diff)
downloadscummvm-rg350-03f07f7f8ab1844fd8e197d607b6e4203f4d5f3a.tar.gz
scummvm-rg350-03f07f7f8ab1844fd8e197d607b6e4203f4d5f3a.tar.bz2
scummvm-rg350-03f07f7f8ab1844fd8e197d607b6e4203f4d5f3a.zip
Add angle change.
svn-id: r17563
Diffstat (limited to 'scumm/wiz_he.cpp')
-rw-r--r--scumm/wiz_he.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/scumm/wiz_he.cpp b/scumm/wiz_he.cpp
index f5fb637428..13e7835b88 100644
--- a/scumm/wiz_he.cpp
+++ b/scumm/wiz_he.cpp
@@ -1101,11 +1101,17 @@ void ScummEngine_v72he::drawWizComplexPolygon(int resNum, int state, int po_x, i
} else {
warning("drawWizComplexPolygon() angle partially implemented");
+ if (angle < 0) {
+ angle = 360 - (angle / 360);
+ } else {
+ angle /= 360;
+ }
+
Common::Rect bounds;
_wiz.polygonCalcBoundBox(pts, 4, bounds);
int x1 = bounds.left;
int y1 = bounds.top;
- // XXX angle changed
+
switch(angle) {
case 270:
flags |= kWIFFlipX | kWIFFlipY;