diff options
Diffstat (limited to 'engines/mohawk/riven_inventory.cpp')
-rw-r--r-- | engines/mohawk/riven_inventory.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/mohawk/riven_inventory.cpp b/engines/mohawk/riven_inventory.cpp index 6e6f575c0c..9872e79a3e 100644 --- a/engines/mohawk/riven_inventory.cpp +++ b/engines/mohawk/riven_inventory.cpp @@ -33,7 +33,8 @@ namespace Mohawk { RivenInventory::RivenInventory(MohawkEngine_Riven *vm) : _vm(vm), _inventoryDrawn(false), - _forceVisible(false) { + _forceVisible(false), + _forceHidden(false) { _atrusJournalRect1 = Common::Rect(295, 402, 313, 426); _atrusJournalRect2 = Common::Rect(259, 402, 278, 426); @@ -176,6 +177,10 @@ bool RivenInventory::isVisible() const { return true; } + if (_forceHidden) { + return false; + } + if (_vm->getFeatures() & GF_DEMO) { // The inventory is always visible in the demo return true; @@ -209,4 +214,8 @@ void RivenInventory::forceVisible(bool visible) { _forceVisible = visible; } +void RivenInventory::forceHidden(bool hidden) { + _forceHidden = hidden; +} + } // End of namespace Mohawk |