From f40a53473746a78619a92e1a183745dc55ed86fc Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Tue, 7 Nov 2017 01:25:50 +0000 Subject: 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. --- engines/supernova/state.cpp | 5 +---- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3