aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Crozat2017-11-07 01:25:50 +0000
committerThierry Crozat2018-01-23 02:15:39 +0000
commitf40a53473746a78619a92e1a183745dc55ed86fc (patch)
tree6ad85339d82e552592c610c7fad84e588004ed83
parent70e8f36a55c5c8f26c8788ca802c087047ffc051 (diff)
downloadscummvm-rg350-f40a53473746a78619a92e1a183745dc55ed86fc.tar.gz
scummvm-rg350-f40a53473746a78619a92e1a183745dc55ed86fc.tar.bz2
scummvm-rg350-f40a53473746a78619a92e1a183745dc55ed86fc.zip
SUPERNOVA: Fix room brightness
The incorrect implementation meant than for example when leaving the cave the room could stay black. Note that the implementation is still approximative for the HOLD and LANDINGMODULE rooms.
-rw-r--r--engines/supernova/state.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp
index b53bb0404a..452339cc09 100644
--- a/engines/supernova/state.cpp
+++ b/engines/supernova/state.cpp
@@ -1184,15 +1184,12 @@ void GameManager::mouseInput3() {
}
void GameManager::roomBrightness() {
+ _vm->_brightness = 255;
if ((_currentRoom->getId() != OUTSIDE) && (_currentRoom->getId() < ROCKS) ) {
if (_state._powerOff)
_vm->_brightness = 153;
- else
- _vm->_brightness = 255;
} else if (_currentRoom->getId() == CAVE) {
_vm->_brightness = 0;
- } else if (_currentRoom->getId() == MEETUP) {
- _vm->_brightness = 255;
} else if (_currentRoom->getId() == GUARD3) {
if (_state._powerOff)
_vm->_brightness = 0;