aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/supernova/supernova.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp
index ed145f1cf4..9abea6baf7 100644
--- a/engines/supernova/supernova.cpp
+++ b/engines/supernova/supernova.cpp
@@ -333,10 +333,8 @@ void SupernovaEngine::restoreScreen() {
}
void SupernovaEngine::renderRoom(Room &room) {
- if (room.getFileNumber() == -1) {
- _system->fillScreen(kColorBlack);
- } else {
- for (int i = 0; i < kMaxSection; ++i) {
+ if (room.getFileNumber() != -1) {
+ for (int i = 0; i < _currentImage->_numSections; ++i) {
if (room.isSectionVisible(i))
renderImage(room.getFileNumber(), i);
}