diff options
author | Thierry Crozat | 2017-11-07 01:25:50 +0000 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 02:15:39 +0000 |
commit | f40a53473746a78619a92e1a183745dc55ed86fc (patch) | |
tree | 6ad85339d82e552592c610c7fad84e588004ed83 /engines/supernova | |
parent | 70e8f36a55c5c8f26c8788ca802c087047ffc051 (diff) | |
download | scummvm-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.
Diffstat (limited to 'engines/supernova')
-rw-r--r-- | engines/supernova/state.cpp | 5 |
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; |