aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/animator_hof.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2008-05-10 17:41:34 +0000
committerJohannes Schickel2008-05-10 17:41:34 +0000
commit95a85a8984bbd9e6fe9a84d1fa83f1bf1652dc46 (patch)
tree21dfbf861ca2899702b918377e39aeb3b191e318 /engines/kyra/animator_hof.cpp
parent870a330c66cdd2f6ae5ca973fcdce802b3f8c48e (diff)
downloadscummvm-rg350-95a85a8984bbd9e6fe9a84d1fa83f1bf1652dc46.tar.gz
scummvm-rg350-95a85a8984bbd9e6fe9a84d1fa83f1bf1652dc46.tar.bz2
scummvm-rg350-95a85a8984bbd9e6fe9a84d1fa83f1bf1652dc46.zip
Simplification in updateItemAnimations in KyraEngine_HoF and KyraEngine_MR.
svn-id: r31976
Diffstat (limited to 'engines/kyra/animator_hof.cpp')
-rw-r--r--engines/kyra/animator_hof.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/animator_hof.cpp b/engines/kyra/animator_hof.cpp
index 9314f8604e..f9fe281179 100644
--- a/engines/kyra/animator_hof.cpp
+++ b/engines/kyra/animator_hof.cpp
@@ -139,7 +139,7 @@ void KyraEngine_HoF::updateItemAnimations() {
return;
uint16 shpIdx = s->frames[a->currentFrame].index + 64;
- if ((s->itemIndex == _handItemSet || s->itemIndex == _itemInHand) && (!_mouseState && _screen->isMouseVisible())) {
+ if (s->itemIndex == _handItemSet && s->itemIndex == _itemInHand && _screen->isMouseVisible()) {
nextFrame = true;
_screen->setMouseCursor(8, 15, getShapePtr(shpIdx));
}