mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 21:13:05 +01:00
Check against invalid tiles correctly
This commit is contained in:
@@ -1652,7 +1652,7 @@ void sub_688972(int screenX, int screenY, sint16 *x, sint16 *y, rct_viewport **v
|
||||
void screen_pos_to_map_pos(sint16 *x, sint16 *y, int *direction)
|
||||
{
|
||||
sub_688972(*x, *y, x, y, NULL);
|
||||
if (*x == 0x8000)
|
||||
if (*x == (sint16)0x8000)
|
||||
return;
|
||||
|
||||
int my_direction;
|
||||
|
||||
@@ -548,7 +548,7 @@ static rct_peep *viewport_interaction_get_closest_peep(int x, int y, int maxDist
|
||||
closestPeep = NULL;
|
||||
closestDistance = 0xFFFF;
|
||||
FOR_ALL_PEEPS(spriteIndex, peep) {
|
||||
if (peep->sprite_left == 0x8000)
|
||||
if (peep->sprite_left == (sint16)0x8000)
|
||||
continue;
|
||||
|
||||
distance =
|
||||
|
||||
Reference in New Issue
Block a user