mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-31 22:53:54 +00:00
SCI: added warning when getting invalid rect in kCan(t)BeHere
svn-id: r48102
This commit is contained in:
parent
ef330ed9b4
commit
d22d8f910a
@ -152,8 +152,10 @@ bool GfxCompare::kernelCanBeHere(reg_t curObject, reg_t listReference) {
|
||||
checkRect.right = GET_SEL32V(_segMan, curObject, SELECTOR(brRight));
|
||||
checkRect.bottom = GET_SEL32V(_segMan, curObject, SELECTOR(brBottom));
|
||||
|
||||
if (!checkRect.isValidRect()) // can occur in Iceman
|
||||
if (!checkRect.isValidRect()) { // can occur in Iceman - HACK? TODO: is this really occuring in sierra sci? check this
|
||||
warning("kCan(t)BeHere - invalid rect %d, %d -> %d, %d", checkRect.left, checkRect.top, checkRect.right, checkRect.bottom);
|
||||
return false;
|
||||
}
|
||||
|
||||
adjustedRect = _coordAdjuster->onControl(checkRect);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user