From 7801d6489b01207d461034bc75473d1b7ec73c73 Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sat, 1 Jul 2017 17:55:00 +0200 Subject: MOHAWK: Reenable the Riven demo specific features --- engines/mohawk/riven_inventory.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'engines/mohawk/riven_inventory.cpp') 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 -- cgit v1.2.3