diff options
author | Joseph-Eugene Winzer | 2017-08-04 11:53:25 +0200 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 01:01:19 +0000 |
commit | 7c13706d2830eeace1f38dbc1908d6a62d250e07 (patch) | |
tree | e90c6e6c7798562ff238003998d25181f59c1689 /engines | |
parent | aa0606beedc5bd68852bd5195373a80c685312ff (diff) | |
download | scummvm-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')
-rw-r--r-- | engines/supernova/rooms.cpp | 2 |
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)) |