diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/toon/toon.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp index 1c90983769..dcc061321c 100644 --- a/engines/toon/toon.cpp +++ b/engines/toon/toon.cpp @@ -1223,9 +1223,9 @@ void ToonEngine::clickEvent() { bool leftButton = false; bool rightButton = false; - if ((_lastMouseButton & 0x1) == 1 && (_mouseButton & 0x1) == 0) + if ((_lastMouseButton & 0x1) == 0 && (_mouseButton & 0x1) == 1) leftButton = true; - if ((_lastMouseButton & 0x2) == 2 && (_mouseButton & 0x2) == 0) + if ((_lastMouseButton & 0x2) == 0 && (_mouseButton & 0x2) == 2) rightButton = true; _lastMouseButton = _mouseButton; @@ -2475,7 +2475,9 @@ int32 ToonEngine::showInventory() { } _gameState->_currentScrollValue = oldScrollValue; - _gameState->_inInventory = false; + _gameState->_inInventory = false; + _mouseButton = 0; + _lastMouseButton = 0x3; fadeOut(5); if (_gameState->_inCloseUp) { |