mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
PRINCE: Inventory opening - fix during talking and options menu
This commit is contained in:
+13
-11
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user