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.
This commit is contained in:
Joseph-Eugene Winzer
2018-01-23 01:01:19 +00:00
committed by Thierry Crozat
parent aa0606beed
commit 7c13706d28
+1 -1
View File
@@ -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))