aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph-Eugene Winzer2017-08-20 22:00:58 +0200
committerThierry Crozat2018-01-23 01:42:26 +0000
commit18894e8f138356234386ff3b4fddf8e9e2c468c7 (patch)
tree1b8b5ba179bb39e078fe9953fd47943be8e2ea02
parentb0c108ff60930a5b07f134528e058523f7acffba (diff)
downloadscummvm-rg350-18894e8f138356234386ff3b4fddf8e9e2c468c7.tar.gz
scummvm-rg350-18894e8f138356234386ff3b4fddf8e9e2c468c7.tar.bz2
scummvm-rg350-18894e8f138356234386ff3b4fddf8e9e2c468c7.zip
SUPERNOVA: Implements turnOn()
-rw-r--r--engines/supernova/state.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp
index 4c28a06d76..66ea0af8aa 100644
--- a/engines/supernova/state.cpp
+++ b/engines/supernova/state.cpp
@@ -697,7 +697,16 @@ void GameManager::turnOff() {
}
void GameManager::turnOn() {
- // STUB
+ if (!_state.powerOff)
+ return;
+
+ _state.powerOff = false;
+ _vm->paletteBrightness();
+ Room *room = _rooms[SLEEP];
+ room->setSectionVisible(1, false);
+ room->setSectionVisible(2, false);
+ room = _rooms[COCKPIT];
+ room->setSectionVisible(22, false);
}
void GameManager::takeObject(Object &obj) {