mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 12:39:56 +00:00
ULTIMA8: Correct range calculation for Crusader intrinsic
This commit is contained in:
parent
6b66d7007a
commit
b7aeac773b
@ -3904,7 +3904,7 @@ uint32 Item::I_getRangeIfVisible(const uint8 *args, unsigned int /*argsize*/) {
|
||||
return 0;
|
||||
|
||||
// Somewhat arbitrary maths in here to replicate Crusader behavior.
|
||||
int range = item->getRangeIfVisible(*other) / 16;
|
||||
int range = item->getRangeIfVisible(*other) / 32;
|
||||
if ((range & 0xf) != 0)
|
||||
range++;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user