aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/kyra_hof.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2010-10-22 02:10:22 +0000
committerJohannes Schickel2010-10-22 02:10:22 +0000
commit03e2d54ca7f3d5533cbae376921cf617736caee5 (patch)
tree989df6c2dc37bd783ad678744a60e446b8b74007 /engines/kyra/kyra_hof.cpp
parent3653613443d8def9ae7f552eb799d1f039fd8097 (diff)
downloadscummvm-rg350-03e2d54ca7f3d5533cbae376921cf617736caee5.tar.gz
scummvm-rg350-03e2d54ca7f3d5533cbae376921cf617736caee5.tar.bz2
scummvm-rg350-03e2d54ca7f3d5533cbae376921cf617736caee5.zip
KYRA: Adapt Kyra2+3 to use the newly added item type too.
svn-id: r53697
Diffstat (limited to 'engines/kyra/kyra_hof.cpp')
-rw-r--r--engines/kyra/kyra_hof.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/kyra_hof.cpp b/engines/kyra/kyra_hof.cpp
index 8159fc0347..8b09e9bcdd 100644
--- a/engines/kyra/kyra_hof.cpp
+++ b/engines/kyra/kyra_hof.cpp
@@ -74,7 +74,7 @@ KyraEngine_HoF::KyraEngine_HoF(OSystem *system, const GameFlags &flags) : KyraEn
_mainCharX = _mainCharY = -1;
_drawNoShapeFlag = false;
_charPalEntry = 0;
- _itemInHand = -1;
+ _itemInHand = kItemNone;
_unkSceneScreenFlag1 = false;
_noScriptEnter = true;
_currentChapter = 0;
@@ -790,7 +790,7 @@ void KyraEngine_HoF::updateMouse() {
if ((mouse.y > 145) || (mouse.x > 6 && mouse.x < 312 && mouse.y > 6 && mouse.y < 135)) {
_mouseState = _itemInHand;
_screen->hideMouse();
- if (_itemInHand == -1)
+ if (_itemInHand == kItemNone)
_screen->setMouseCursor(0, 0, getShapePtr(0));
else
_screen->setMouseCursor(8, 15, getShapePtr(_itemInHand+64));