aboutsummaryrefslogtreecommitdiff
path: root/engines/supernova/supernova.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/supernova/supernova.cpp')
-rw-r--r--engines/supernova/supernova.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp
index b83e901510..6c29e57f39 100644
--- a/engines/supernova/supernova.cpp
+++ b/engines/supernova/supernova.cpp
@@ -222,7 +222,6 @@ void SupernovaEngine::renderImage(int filenumber, int section, bool fullscreen)
error("File %s could not be read!", file.getName());
}
- _currentImageFilenumber = filenumber;
if (_currentImage.loadStream(file) && _currentImage.loadSection(section)) {
_system->getPaletteManager()->setPalette(_currentImage.getPalette(), 16, 239);
paletteBrightness();
@@ -1092,7 +1091,7 @@ void GameManager::executeRoom() {
// This is locked.
_vm->renderMessage("Das ist verschlossen.");
} else {
- _vm->renderImage(_vm->_currentImageFilenumber, _inputObject[0]._section);
+ _vm->renderImage(_currentRoom->getFileNumber(), _inputObject[0]._section);
_inputObject[0].setProperty(OPENED);
byte i = _inputObject[0]._click;
_inputObject[0]._click = _inputObject[0]._click2;
@@ -1111,7 +1110,7 @@ void GameManager::executeRoom() {
// This is already closed.
_vm->renderMessage("Das ist schon geschlossen.");
} else {
- _vm->renderImage(_vm->_currentImageFilenumber, invertSection(_inputObject[0]._section));
+ _vm->renderImage(_currentRoom->getFileNumber(), invertSection(_inputObject[0]._section));
_inputObject[0].disableProperty(OPENED);
byte i = _inputObject[0]._click;
_inputObject[0]._click = _inputObject[0]._click2;