Skip to content

Commit

Permalink
SCI32: Add note about kCantBeHere rect
Browse files Browse the repository at this point in the history
  • Loading branch information
csnover committed Mar 13, 2016
1 parent 80098c8 commit 430d5be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions engines/sci/graphics/compare.cpp
Expand Up @@ -158,6 +158,10 @@ reg_t GfxCompare::kernelCanBeHere(reg_t curObject, reg_t listReference) {
}

reg_t GfxCompare::kernelCantBeHere32(const reg_t curObject, const reg_t listReference) const {
// Most of SCI32 graphics code converts rects from the VM to exclusive
// rects before operating on them, but this call leverages SCI16 engine
// code that operates on inclusive rects, so the rect's bottom-right
// point is not modified like in other SCI32 kernel calls
Common::Rect checkRect(
readSelectorValue(_segMan, curObject, SELECTOR(brLeft)),
readSelectorValue(_segMan, curObject, SELECTOR(brTop)),
Expand Down

0 comments on commit 430d5be

Please sign in to comment.