diff options
author | Joseph-Eugene Winzer | 2017-09-04 19:05:49 +0200 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 02:15:31 +0000 |
commit | 945dc9f46fd1744653d88955a2bcbd2f48ca7827 (patch) | |
tree | 19b5d390745b44c15950fcd889b71b5e870a5209 /engines | |
parent | 7da494427dfb18e05205dcc38150fb96aafa5061 (diff) | |
download | scummvm-rg350-945dc9f46fd1744653d88955a2bcbd2f48ca7827.tar.gz scummvm-rg350-945dc9f46fd1744653d88955a2bcbd2f48ca7827.tar.bz2 scummvm-rg350-945dc9f46fd1744653d88955a2bcbd2f48ca7827.zip |
SUPERNOVA: Fixes rendering and logic for cable
Diffstat (limited to 'engines')
-rw-r--r-- | engines/supernova/rooms.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/engines/supernova/rooms.cpp b/engines/supernova/rooms.cpp index 1bd5610e5d..a88eb6f991 100644 --- a/engines/supernova/rooms.cpp +++ b/engines/supernova/rooms.cpp @@ -1068,8 +1068,8 @@ bool ShipHold::interact(Action verb, Object &obj1, Object &obj2) { room = _gm->_rooms[GENERATOR]; room->getObject(0)->_click = 15; room->getObject(1)->_click = 13; - room->setSectionVisible(6, false); - room->setSectionVisible(8, false); + room->setSectionVisible(6, true); + room->setSectionVisible(8, true); _gm->drawImage(_gm->invertSection(5)); _gm->drawImage(6); setSectionVisible(4, false); @@ -1164,22 +1164,21 @@ bool ShipLandingModule::interact(Action verb, Object &obj1, Object &obj2) { _gm->drawImage(5); getObject(4)->_name = "langes Kabel mit Stecker"; getObject(4)->_click = 6; - r = _gm->_rooms[CABIN_L2]; - _gm->_inventory.remove(*r->getObject(9)); + _gm->_inventory.remove(*_gm->_rooms[CABIN_L2]->getObject(9)); } } else if ((verb == ACTION_USE) && Object::combine(obj1, obj2, LANDINGMOD_WIRE, LANDINGMOD_HATCH)) { if (getObject(5)->hasProperty(OPENED)) { r = _gm->_rooms[HOLD]; if (isSectionVisible(5)) { - _gm->_rooms[HOLD]->setSectionVisible(5, false); + r->setSectionVisible(5, true); r->getObject(0)->_click = 10; - - } else + } else { r->getObject(0)->_click = 9; - _gm->_rooms[HOLD]->setSectionVisible(4, false); + } + r->setSectionVisible(4, true); r->getObject(0)->_name = getObject(4)->_name; - _gm->drawImage(_gm->invertSection(4)); _gm->drawImage(_gm->invertSection(5)); + _gm->drawImage(_gm->invertSection(4)); setSectionVisible(11, false); _gm->drawImage(6); getObject(4)->_click = 7; |