aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven_inventory.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2017-07-01 17:55:00 +0200
committerEugene Sandulenko2017-07-03 08:50:10 +0200
commit7801d6489b01207d461034bc75473d1b7ec73c73 (patch)
treed76243537a3c74065bbcdd6dd5cc83a9ffeb5c63 /engines/mohawk/riven_inventory.cpp
parent8c6cd9806714b463ae43bfed11acbb88d1e9bc9a (diff)
downloadscummvm-rg350-7801d6489b01207d461034bc75473d1b7ec73c73.tar.gz
scummvm-rg350-7801d6489b01207d461034bc75473d1b7ec73c73.tar.bz2
scummvm-rg350-7801d6489b01207d461034bc75473d1b7ec73c73.zip
MOHAWK: Reenable the Riven demo specific features
Diffstat (limited to 'engines/mohawk/riven_inventory.cpp')
-rw-r--r--engines/mohawk/riven_inventory.cpp11
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