aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/prince/prince.cpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/engines/prince/prince.cpp b/engines/prince/prince.cpp
index b57cba979e..771741f60e 100644
--- a/engines/prince/prince.cpp
+++ b/engines/prince/prince.cpp
@@ -4291,17 +4291,19 @@ void PrinceEngine::mainLoop() {
_frameNr++;
// inventory turning on:
- Common::Point mousePos = _system->getEventManager()->getMousePos();
- if (mousePos.y < 4 && !_showInventoryFlag) {
- _invCounter++;
- } else {
- _invCounter = 0;
- }
- if (_invCounter >= _invMaxCount) {
- if (_flags->getFlagValue(Flags::INVALLOWED) != 1) {
- // 29 - Basement, 50 - Map, 59 - Intro
- if (_locationNr != 29 && _locationNr != 50 && _locationNr != 59) {
- inventoryFlagChange(true);
+ if (!_optionsFlag && _mouseFlag) {
+ Common::Point mousePos = _system->getEventManager()->getMousePos();
+ if (mousePos.y < 4 && !_showInventoryFlag) {
+ _invCounter++;
+ } else {
+ _invCounter = 0;
+ }
+ if (_invCounter >= _invMaxCount) {
+ if (_flags->getFlagValue(Flags::INVALLOWED) != 1) {
+ // 29 - Basement, 50 - Map, 59 - Intro
+ if (_locationNr != 29 && _locationNr != 50 && _locationNr != 59) {
+ inventoryFlagChange(true);
+ }
}
}
}