From 4e83bd307ad616e4b65d62db2995406941368a18 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sat, 4 Feb 2006 10:18:25 +0000 Subject: [PATCH] Reset shadow for each cycle. svn-id: r20371 --- scumm/akos.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scumm/akos.cpp b/scumm/akos.cpp index d2120c62bef..626177112b9 100644 --- a/scumm/akos.cpp +++ b/scumm/akos.cpp @@ -466,11 +466,13 @@ byte AkosRenderer::drawLimb(const Actor *a, int limb) { _ymove -= lastDy; } - uint16 shadowMask = 0; + if (_vm->_heversion >= 90) + _shadow_mode = 0; if (!useCondMask || !akct) { decflag = 1; } else { + uint16 shadowMask = 0; uint32 cond = READ_LE_UINT32(akct + cost.heCondMaskTable[limb] + heCondMaskIndex[i] * 4); if (cond == 0) { decflag = 1; @@ -491,9 +493,8 @@ byte AkosRenderer::drawLimb(const Actor *a, int limb) { decflag = (a->_heCondMask & cond) ? 1 : 0; } - if (_vm->_heversion >= 90) { - _shadow_mode = ((shadowMask & 0x8000) && xmap) ? 3 : 0; - } + if (_vm->_heversion >= 90 && (shadowMask & 0x8000) && xmap) + _shadow_mode = 3; } }