aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2005-02-25 01:20:46 +0000
committerTravis Howell2005-02-25 01:20:46 +0000
commit6ae017622adb28b80c9ea3e598832bb7d484c0f7 (patch)
treea7bfedb00bf531b6d20b487517230a1fce29c91c
parentcae8366844a969a3b82a6736fa77453b453cfe1a (diff)
downloadscummvm-rg350-6ae017622adb28b80c9ea3e598832bb7d484c0f7.tar.gz
scummvm-rg350-6ae017622adb28b80c9ea3e598832bb7d484c0f7.tar.bz2
scummvm-rg350-6ae017622adb28b80c9ea3e598832bb7d484c0f7.zip
*** empty log message ***
svn-id: r16906
-rw-r--r--scumm/sprite_he.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/scumm/sprite_he.cpp b/scumm/sprite_he.cpp
index 5793b810e7..ddf294017e 100644
--- a/scumm/sprite_he.cpp
+++ b/scumm/sprite_he.cpp
@@ -1144,7 +1144,7 @@ void ScummEngine_v90he::spritesSortActiveSprites() {
}
void ScummEngine_v90he::spritesProcessWiz(bool arg) {
- int spr_flags, spr_flags_;
+ int spr_flags;
int16 spr_wiz_x, spr_wiz_y;
int res_id, res_state;
Common::Rect *bboxPtr;
@@ -1202,9 +1202,8 @@ void ScummEngine_v90he::spritesProcessWiz(bool arg) {
if (res_id) {
rot_angle = spi->rot_angle;
zoom = spi->zoom;
- spr_flags_ = spi->flags & kSFRotated;
getWizImageDim(res_id, res_state, w, h);
- if (!(spi->flags & (kSFZoomed | kSFRotated)) || 1) { // FIXME. remove '|| 1'
+ if (!(spi->flags & kSFZoomed) && !(spi->flags & kSFRotated)) {
bboxPtr->left = wiz.img.x1;
bboxPtr->top = wiz.img.y1;
bboxPtr->right = wiz.img.x1 + w;
@@ -1223,7 +1222,7 @@ void ScummEngine_v90he::spritesProcessWiz(bool arg) {
pts[j].y = pts[i].y * zoom / 256;
}
}
- if (rot_angle) {
+ if (spi->flags & kSFRotated) {
double alpha = rot_angle * PI / 180.;
double cos_alpha = cos(alpha);
double sin_alpha = sin(alpha);