From d04667e58a889e4744f36fb5797a69fa437a1abf Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Wed, 26 Feb 2014 21:56:40 -0500 Subject: PEGASUS: Fix being able to use the inventory from the pause screen Somehow, I completely missed implementing this function! --- engines/pegasus/pegasus.cpp | 9 +++++++++ engines/pegasus/pegasus.h | 1 + 2 files changed, 10 insertions(+) (limited to 'engines') diff --git a/engines/pegasus/pegasus.cpp b/engines/pegasus/pegasus.cpp index c45053dfed..c5edd34a01 100644 --- a/engines/pegasus/pegasus.cpp +++ b/engines/pegasus/pegasus.cpp @@ -1462,6 +1462,15 @@ void PegasusEngine::throwAwayEverything() { g_interface = 0; } +InputBits PegasusEngine::getInputFilter() { + InputBits filter = InputHandler::getInputFilter(); + + if (isPaused()) + return filter & ~JMPPPInput::getItemPanelsInputFilter(); + + return filter; +} + void PegasusEngine::processShell() { checkCallBacks(); checkNotifications(); diff --git a/engines/pegasus/pegasus.h b/engines/pegasus/pegasus.h index 59637e38df..fb66eb7586 100644 --- a/engines/pegasus/pegasus.h +++ b/engines/pegasus/pegasus.h @@ -272,6 +272,7 @@ private: uint getNeighborhoodCD(const NeighborhoodID neighborhood) const; uint _currentCD; void initKeymap(); + InputBits getInputFilter(); // Menu GameMenu *_gameMenu; -- cgit v1.2.3