mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-24 10:45:46 +00:00
TONY: Workaround for hang on title screen if you click with a y = 0
This commit is contained in:
parent
3927d90206
commit
b566583e32
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user