Permalink
Browse files

SUPERNOVA: Fixes rerendering of the room

One sprite can consist of many sections that are concatenated in a
linked list.
  • Loading branch information...
Joefish committed Aug 13, 2017
1 parent 329ad72 commit 6eb99d81b9d8f274bc3e1c5a34fd2f1b35a59b16
Showing with 7 additions and 2 deletions.
  1. +7 −2 engines/supernova/supernova.cpp
@@ -359,8 +359,13 @@ void SupernovaEngine::restoreScreen() {
void SupernovaEngine::renderRoom(Room &room) {
if (room.getFileNumber() != -1) {
for (int i = 0; i < _currentImage->_numSections; ++i) {
if (room.isSectionVisible(i))
renderImage(room.getFileNumber(), i);
int section = i;
if (room.isSectionVisible(section)) {
do {
renderImage(room.getFileNumber(), section);
section = _currentImage->_section[section].next;
} while (section != 0);
}
}
}
}

0 comments on commit 6eb99d8

Please sign in to comment.