diff options
Diffstat (limited to 'engines/supernova/state.cpp')
-rw-r--r-- | engines/supernova/state.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp index d9f4e8cb25..6553596387 100644 --- a/engines/supernova/state.cpp +++ b/engines/supernova/state.cpp @@ -515,7 +515,11 @@ void GameManager::resetInputState() { void GameManager::processInput() { if (_mouseClickType == Common::EVENT_LBUTTONUP) { - _vm->removeMessage(); + if (_vm->_messageDisplayed) { + // Hide the message and consume the event + _vm->removeMessage(); + return; + } if (((_mouseField >= 0) && (_mouseField < 256)) || ((_mouseField >= 512) && (_mouseField < 768))) { @@ -544,7 +548,11 @@ void GameManager::processInput() { _inventoryScroll += 2; } } else if (_mouseClickType == Common::EVENT_RBUTTONUP) { - _vm->removeMessage(); + if (_vm->_messageDisplayed) { + // Hide the message and consume the event + _vm->removeMessage(); + return; + } if (Object::isNullObject(_currentInputObject)) return; |