aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2016-01-15 20:59:25 +0200
committerFilippos Karapetis2016-01-15 21:03:58 +0200
commitf3cdd217ba815f4dccf7a507fef7f1287f5dd1a9 (patch)
tree24e5d34700b0f6a2b13286b3bee8efc71034fa02
parentafa75b70475ca47daba11c8bfacc7e61592cc0c6 (diff)
downloadscummvm-rg350-f3cdd217ba815f4dccf7a507fef7f1287f5dd1a9.tar.gz
scummvm-rg350-f3cdd217ba815f4dccf7a507fef7f1287f5dd1a9.tar.bz2
scummvm-rg350-f3cdd217ba815f4dccf7a507fef7f1287f5dd1a9.zip
LAB: Get rid of _interfaceOff
-rw-r--r--engines/lab/engine.cpp12
-rw-r--r--engines/lab/lab.cpp1
-rw-r--r--engines/lab/lab.h1
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;