diff options
author | Bastien Bouclet | 2017-07-01 17:05:39 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-03 08:50:10 +0200 |
commit | 8c6cd9806714b463ae43bfed11acbb88d1e9bc9a (patch) | |
tree | 05caa717abbe01f5a5d88b48e51d2aede19e42d6 /engines/mohawk/riven.cpp | |
parent | 64c1a1d2b28f5fa0520d5824d595a3194a79ec3f (diff) | |
download | scummvm-rg350-8c6cd9806714b463ae43bfed11acbb88d1e9bc9a.tar.gz scummvm-rg350-8c6cd9806714b463ae43bfed11acbb88d1e9bc9a.tar.bz2 scummvm-rg350-8c6cd9806714b463ae43bfed11acbb88d1e9bc9a.zip |
MOHAWK: Fix the inventory being visible when scripts are running
Diffstat (limited to 'engines/mohawk/riven.cpp')
-rw-r--r-- | engines/mohawk/riven.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp index f7a29ab8c2..8b2fa6c754 100644 --- a/engines/mohawk/riven.cpp +++ b/engines/mohawk/riven.cpp @@ -202,14 +202,6 @@ void MohawkEngine_Riven::doFrame() { switch (event.type) { case Common::EVENT_MOUSEMOVE: _stack->onMouseMove(event.mouse); - - if (!(getFeatures() & GF_DEMO)) { - // Check to show the inventory, but it is always "showing" in the demo - if (_eventMan->getMousePos().y >= 392) - _inventory->show(); - else - _inventory->hide(); - } break; case Common::EVENT_LBUTTONDOWN: _stack->onMouseDown(_eventMan->getMousePos()); @@ -274,6 +266,8 @@ void MohawkEngine_Riven::doFrame() { _scriptMan->runQueuedScripts(); } + _inventory->onFrame(); + // Update the screen once per frame _system->updateScreen(); |