diff options
author | Oliver Kiehl | 2003-05-02 12:16:50 +0000 |
---|---|---|
committer | Oliver Kiehl | 2003-05-02 12:16:50 +0000 |
commit | b4944983ece49268fdb56dd6c61680b209b2eae9 (patch) | |
tree | c5c6fbe07af2823ac027f842f95fc3fc2cc125a2 /sky | |
parent | 52ee054c4dda6d3fb9f840508cd584ab7c61d386 (diff) | |
download | scummvm-rg350-b4944983ece49268fdb56dd6c61680b209b2eae9.tar.gz scummvm-rg350-b4944983ece49268fdb56dd6c61680b209b2eae9.tar.bz2 scummvm-rg350-b4944983ece49268fdb56dd6c61680b209b2eae9.zip |
renamed shadowed var
svn-id: r7265
Diffstat (limited to 'sky')
-rw-r--r-- | sky/logic.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sky/logic.cpp b/sky/logic.cpp index a0ad84a834..3529818dec 100644 --- a/sky/logic.cpp +++ b/sky/logic.cpp @@ -307,21 +307,21 @@ void SkyLogic::mainAnim() { } }; - uint16 **anim = (uint16 **)SkyCompact::getCompactElem(_compact, + uint16 **animList = (uint16 **)SkyCompact::getCompactElem(_compact, C_ANIM_UP + _compact->extCompact->megaSet + dir * 4); uint16 arAnimIndex = _compact->extCompact->arAnimIndex; - if (!(*anim)[arAnimIndex/2]) { + if (!(*animList)[arAnimIndex/2]) { arAnimIndex = 0; _compact->extCompact->arAnimIndex = 0; // reset } _compact->extCompact->arAnimIndex += S_LENGTH; - *sequence -= (*anim)[(S_COUNT + arAnimIndex)/2]; // reduce the distance to travel - _compact->frame = (*anim)[(S_FRAME + arAnimIndex)/2]; // new graphic frame - _compact->xcood += (*anim)[(S_AR_X + arAnimIndex)/2]; // update x coordinate - _compact->ycood += (*anim)[(S_AR_Y + arAnimIndex)/2]; // update y coordinate + *sequence -= (*animList)[(S_COUNT + arAnimIndex)/2]; // reduce the distance to travel + _compact->frame = (*animList)[(S_FRAME + arAnimIndex)/2]; // new graphic frame + _compact->xcood += (*animList)[(S_AR_X + arAnimIndex)/2]; // update x coordinate + _compact->ycood += (*animList)[(S_AR_Y + arAnimIndex)/2]; // update y coordinate } void SkyLogic::arTurn() { |