mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
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:
committed by
Thierry Crozat
parent
aa0606beed
commit
7c13706d28
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user