aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2005-02-24 05:11:37 +0000
committerEugene Sandulenko2005-02-24 05:11:37 +0000
commite26480aaee02f9e7849273dc2469cac06fef60d5 (patch)
treef7880c49f3881e681e1985b71946c07d8b83c5e2
parent5787793e054bff1b7f6a8992ac75f2c7607add4f (diff)
downloadscummvm-rg350-e26480aaee02f9e7849273dc2469cac06fef60d5.tar.gz
scummvm-rg350-e26480aaee02f9e7849273dc2469cac06fef60d5.tar.bz2
scummvm-rg350-e26480aaee02f9e7849273dc2469cac06fef60d5.zip
This is a dirty hack which lets see HE sprites, so further debugging is
possible. svn-id: r16889
-rw-r--r--scumm/sprite_he.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/scumm/sprite_he.cpp b/scumm/sprite_he.cpp
index 184c11cabd..5dd73f920a 100644
--- a/scumm/sprite_he.cpp
+++ b/scumm/sprite_he.cpp
@@ -979,6 +979,7 @@ void ScummEngine_v90he::spritesBlitToScreen() {
xmax = ymax = -1234;
bool firstLoop = true;
bool refreshScreen = false;
+
for (int i = 0; i < _numSpritesToProcess; ++i) {
SpriteInfo *spi = _activeSpritesTable[i];
if (!(spi->flags & kSF31) && (spi->flags & kSF01)) {
@@ -1156,17 +1157,18 @@ void ScummEngine_v90he::spritesProcessWiz(bool arg) {
for (int i = 0; i < _numSpritesToProcess; i++) {
SpriteInfo *spi = _activeSpritesTable[i];
- if (!(spi->flags & kSFNeedRedraw))
- continue;
+ if (!(spi->flags & kSFNeedRedraw)) {
+ //continue; // HACK
+ }
spr_flags = spi->flags;
if (arg) {
if (spi->field_0)
- return;
+ ; //return; // HACK
} else {
if (spi->field_0 < 0)
- continue;
+ ; //continue; // HACK
}
spi->flags &= ~(kSF01 | kSFNeedRedraw);
@@ -1188,7 +1190,7 @@ void ScummEngine_v90he::spritesProcessWiz(bool arg) {
wiz.img.x1 = spi->tx - spr_wiz_x;
wiz.img.y1 = spi->ty - spr_wiz_y;
}
-
+
spi->field_48 = wiz.img.state = res_state;
spi->field_4C = wiz.img.resNum = res_id;
wiz.processFlags = 0x401;