TONY: Workaround for hang on title screen if you click with a y = 0

This commit is contained in:
Paul Gilbert 2012-06-03 21:16:25 +10:00
parent 3927d90206
commit b566583e32

View File

@ -1298,6 +1298,10 @@ RMPoint RMCharacter::InvScanLine(const RMPoint &punto) {
}
Lscan.x = Lstart.x + Ldx;
Lscan.y = Lstart.y + Ldy;
// WORKAROUND: Handles cases where the points never fall inside a bounding box
if (Lscan.x < -100 || Lscan.y < -100 || Lscan.x >= 1000 || Lscan.y >= 1000)
return punto;
}
}