diff options
author | Joseph-Eugene Winzer | 2017-07-17 16:39:16 +0200 |
---|---|---|
committer | Thierry Crozat | 2018-01-22 23:54:42 +0000 |
commit | c903ede02383618489e4b1c74f5a63be2416256b (patch) | |
tree | b670e676e3e644b0668cf25fca56c9ba493b5848 /engines | |
parent | b959453b39c76abfc459ecaef982593ff60bf300 (diff) | |
download | scummvm-rg350-c903ede02383618489e4b1c74f5a63be2416256b.tar.gz scummvm-rg350-c903ede02383618489e4b1c74f5a63be2416256b.tar.bz2 scummvm-rg350-c903ede02383618489e4b1c74f5a63be2416256b.zip |
SUPERNOVA: Fixes renderRoom() by limiting the section range
Diffstat (limited to 'engines')
-rw-r--r-- | engines/supernova/supernova.cpp | 6 |
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); } |