Skip to content

Commit

Permalink
SCI32: Fix changed screen items drawing on top of higher screen items
Browse files Browse the repository at this point in the history
  • Loading branch information
csnover committed Mar 2, 2016
1 parent 2e75f4b commit 7ee2af4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/sci/graphics/plane32.cpp
Expand Up @@ -434,7 +434,7 @@ void Plane::calcLists(Plane &visiblePlane, const PlaneList &planeList, DrawList
}
}
}
if (/* TODO: g_Remap_numActiveRemaps */ false) { // no remaps active?
if (/* TODO: g_Remap_numActiveRemaps == 0 */ true) { // no remaps active?
// Add all items that overlap with items in the drawlist and have higher
// priority
for (DrawList::size_type i = 0; i < drawList.size(); ++i) {
Expand All @@ -447,7 +447,7 @@ void Plane::calcLists(Plane &visiblePlane, const PlaneList &planeList, DrawList
if (j < _screenItemList.size() && sli) {
if (!sli->_updated && !sli->_deleted && !sli->_created) {
ScreenItem *item = dli->screenItem;
if (sli->_priority > item->_priority || (sli->_priority == item->_priority && sli->_object > item->_object)) {
if (sli->_priority > item->_priority /* TODO: || (sli->_priority == item->_priority && sli->_object > item->_object)*/) {
if (dli->rect.intersects(sli->_screenRect)) {
drawList.add(sli, dli->rect.findIntersectingRect(sli->_screenRect));
}
Expand Down

0 comments on commit 7ee2af4

Please sign in to comment.