aboutsummaryrefslogtreecommitdiff
path: root/engines/supernova/rooms.cpp
diff options
context:
space:
mode:
authorJoseph-Eugene Winzer2017-08-04 11:53:25 +0200
committerThierry Crozat2018-01-23 01:01:19 +0000
commit7c13706d2830eeace1f38dbc1908d6a62d250e07 (patch)
treee90c6e6c7798562ff238003998d25181f59c1689 /engines/supernova/rooms.cpp
parentaa0606beedc5bd68852bd5195373a80c685312ff (diff)
downloadscummvm-rg350-7c13706d2830eeace1f38dbc1908d6a62d250e07.tar.gz
scummvm-rg350-7c13706d2830eeace1f38dbc1908d6a62d250e07.tar.bz2
scummvm-rg350-7c13706d2830eeace1f38dbc1908d6a62d250e07.zip
SUPERNOVA: Fixes code
kMaxSection - 1 was used in the original code to indicate if the GUI is currently shown. In this engine an explicit variable _guiEnabled is used.
Diffstat (limited to 'engines/supernova/rooms.cpp')
-rw-r--r--engines/supernova/rooms.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/supernova/rooms.cpp b/engines/supernova/rooms.cpp
index d19529a9e9..9220028a00 100644
--- a/engines/supernova/rooms.cpp
+++ b/engines/supernova/rooms.cpp
@@ -432,7 +432,7 @@ bool ShipCabinL3::interact(Action verb, Object &obj1, Object &obj2) {
Room *r;
if ((verb == ACTION_USE) && Object::combine(obj1, obj2, RECORD, TURNTABLE)) {
- if (isSectionVisible(kMaxSection - 1) || isSectionVisible(15))
+ if (!_gm->_guiEnabled || isSectionVisible(15))
_vm->renderMessage("Du hast die Platte schon aufgelegt.");
else {
if (!getObject(4)->hasProperty(CARRIED))