1
0
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:
Duncan Frost
2015-06-03 18:02:41 +01:00
parent 463131117c
commit fb1c8c4e42
11 changed files with 20 additions and 20 deletions

View File

@@ -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;

View File

@@ -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 =