aboutsummaryrefslogtreecommitdiff
path: root/scumm/akos.cpp
diff options
context:
space:
mode:
authorTravis Howell2006-02-04 02:16:18 +0000
committerTravis Howell2006-02-04 02:16:18 +0000
commit0c8e751b29c518e673584ec7e4ac045f0fde9fee (patch)
treeccce76acf8da52c6b64e9c289b0787d6515ab781 /scumm/akos.cpp
parent71d62986c0669926c80e2581da5350e1fe57ecb9 (diff)
downloadscummvm-rg350-0c8e751b29c518e673584ec7e4ac045f0fde9fee.tar.gz
scummvm-rg350-0c8e751b29c518e673584ec7e4ac045f0fde9fee.tar.bz2
scummvm-rg350-0c8e751b29c518e673584ec7e4ac045f0fde9fee.zip
Correct the position of shadow check in HE90+ games.
Fixes glitch when recycling bottles in puttrace. svn-id: r20366
Diffstat (limited to 'scumm/akos.cpp')
-rw-r--r--scumm/akos.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/scumm/akos.cpp b/scumm/akos.cpp
index 63bb44fc36..d2120c62be 100644
--- a/scumm/akos.cpp
+++ b/scumm/akos.cpp
@@ -490,6 +490,10 @@ byte AkosRenderer::drawLimb(const Actor *a, int limb) {
} else {
decflag = (a->_heCondMask & cond) ? 1 : 0;
}
+
+ if (_vm->_heversion >= 90) {
+ _shadow_mode = ((shadowMask & 0x8000) && xmap) ? 3 : 0;
+ }
}
}
@@ -498,10 +502,6 @@ byte AkosRenderer::drawLimb(const Actor *a, int limb) {
if (decflag == 0)
continue;
- if (_vm->_heversion >= 90) {
- _shadow_mode = ((shadowMask & 0x8000) && xmap) ? 3 : 0;
- }
-
switch (codec) {
case 1:
result |= codec1(xmoveCur, ymoveCur);