diff options
author | Robert Göffringmann | 2004-01-01 18:00:34 +0000 |
---|---|---|
committer | Robert Göffringmann | 2004-01-01 18:00:34 +0000 |
commit | 2b3d8a42dd1b15b55940d9c16d0b55e6a9e3a9f5 (patch) | |
tree | ab7a3351ad0f8302cf3a0832f7ba87e2533fd843 /sword1/mouse.cpp | |
parent | 82ef464a69e7e8f8b0f06f1649af2507bc2b5d8c (diff) | |
download | scummvm-rg350-2b3d8a42dd1b15b55940d9c16d0b55e6a9e3a9f5.tar.gz scummvm-rg350-2b3d8a42dd1b15b55940d9c16d0b55e6a9e3a9f5.tar.bz2 scummvm-rg350-2b3d8a42dd1b15b55940d9c16d0b55e6a9e3a9f5.zip |
implemented examining inventory items
svn-id: r12075
Diffstat (limited to 'sword1/mouse.cpp')
-rw-r--r-- | sword1/mouse.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sword1/mouse.cpp b/sword1/mouse.cpp index 26fd07fde1..a402f68f21 100644 --- a/sword1/mouse.cpp +++ b/sword1/mouse.cpp @@ -152,8 +152,12 @@ void SwordMouse::engine(uint16 x, uint16 y, uint16 eventFlags) { } else SwordLogic::_scriptVars[SPECIAL_ITEM] = 0; if (_state & MOUSE_DOWN_MASK) { - if (_inTopMenu && SwordLogic::_scriptVars[SECOND_ITEM]) - _logic->runMouseScript(NULL, _menu->_objectDefs[SwordLogic::_scriptVars[SECOND_ITEM]].useScript); + if (_inTopMenu) { + if (SwordLogic::_scriptVars[SECOND_ITEM]) + _logic->runMouseScript(NULL, _menu->_objectDefs[SwordLogic::_scriptVars[SECOND_ITEM]].useScript); + if (SwordLogic::_scriptVars[MENU_LOOKING]) + _logic->cfnPresetScript(NULL, -1, PLAYER, SCR_menu_look, 0, 0, 0, 0); + } SwordLogic::_scriptVars[MOUSE_BUTTON] = _state & MOUSE_DOWN_MASK; if (SwordLogic::_scriptVars[SPECIAL_ITEM]) { |