1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00

Make passing of CoordsXY explicit

This commit is contained in:
ζeh Matt
2023-04-05 23:23:19 +03:00
parent 1a0afab6c6
commit c248ac58ed

View File

@@ -6381,7 +6381,7 @@ static bool PeepFindRideToLookAt(Peep* peep, uint8_t edge, RideId* rideToView, u
uint16_t x = peep->NextLoc.x + CoordsDirectionDelta[edge].x;
uint16_t y = peep->NextLoc.y + CoordsDirectionDelta[edge].y;
if (!MapIsLocationValid({ x, y }))
if (!MapIsLocationValid(CoordsXY{ x, y }))
{
return false;
}
@@ -6498,7 +6498,7 @@ static bool PeepFindRideToLookAt(Peep* peep, uint8_t edge, RideId* rideToView, u
x += CoordsDirectionDelta[edge].x;
y += CoordsDirectionDelta[edge].y;
if (!MapIsLocationValid({ x, y }))
if (!MapIsLocationValid(CoordsXY{ x, y }))
{
return false;
}
@@ -6615,7 +6615,7 @@ static bool PeepFindRideToLookAt(Peep* peep, uint8_t edge, RideId* rideToView, u
x += CoordsDirectionDelta[edge].x;
y += CoordsDirectionDelta[edge].y;
if (!MapIsLocationValid({ x, y }))
if (!MapIsLocationValid(CoordsXY{ x, y }))
{
return false;
}