diff options
-rw-r--r-- | engines/lab/engine.cpp | 12 | ||||
-rw-r--r-- | engines/lab/lab.cpp | 1 | ||||
-rw-r--r-- | engines/lab/lab.h | 1 |
3 files changed, 3 insertions, 11 deletions
diff --git a/engines/lab/engine.cpp b/engines/lab/engine.cpp index a159fb463a..447579e55b 100644 --- a/engines/lab/engine.cpp +++ b/engines/lab/engine.cpp @@ -286,18 +286,12 @@ Common::String LabEngine::getInvName(uint16 curInv) { } void LabEngine::interfaceOff() { - if (!_interfaceOff) { - _interface->attachButtonList(nullptr); - _event->mouseHide(); - _interfaceOff = true; - } + _interface->attachButtonList(nullptr); + _event->mouseHide(); } void LabEngine::interfaceOn() { - if (_interfaceOff) { - _interfaceOff = false; - _event->mouseShow(); - } + _event->mouseShow(); if (_graphics->_longWinInFront) _interface->attachButtonList(nullptr); diff --git a/engines/lab/lab.cpp b/engines/lab/lab.cpp index 70b7f718ec..0a4cf4ec50 100644 --- a/engines/lab/lab.cpp +++ b/engines/lab/lab.cpp @@ -93,7 +93,6 @@ LabEngine::LabEngine(OSystem *syst, const ADGameDescription *gameDesc) _journalBackImage = nullptr; _lastTooLong = false; - _interfaceOff = false; _alternate = false; for (int i = 0; i < 20; i++) diff --git a/engines/lab/lab.h b/engines/lab/lab.h index 4a037efb2d..2a1e527098 100644 --- a/engines/lab/lab.h +++ b/engines/lab/lab.h @@ -125,7 +125,6 @@ class LabEngine : public Engine { friend class Console; private: - bool _interfaceOff; bool _isCrumbWaiting; bool _lastTooLong; bool _lastPage; |