diff options
author | Johannes Schickel | 2010-10-22 02:10:22 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-10-22 02:10:22 +0000 |
commit | 03e2d54ca7f3d5533cbae376921cf617736caee5 (patch) | |
tree | 989df6c2dc37bd783ad678744a60e446b8b74007 /engines/kyra/kyra_hof.cpp | |
parent | 3653613443d8def9ae7f552eb799d1f039fd8097 (diff) | |
download | scummvm-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.cpp | 4 |
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)); |