1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 17:24:47 +01:00

Clean up many other coordinates

This commit is contained in:
Gymnasiast
2020-03-13 12:03:43 +01:00
parent 3412c47a9e
commit bdf681f440
32 changed files with 132 additions and 172 deletions

View File

@@ -471,8 +471,8 @@ bool ride_try_get_origin_element(const Ride* ride, CoordsXYE* output)
if (output != nullptr)
{
output->element = resultTileElement;
output->x = it.x * 32;
output->y = it.y * 32;
output->x = it.x * COORDS_XY_STEP;
output->y = it.y * COORDS_XY_STEP;
}
}
@@ -6984,7 +6984,7 @@ void sub_6CB945(Ride* ride)
continue;
}
CoordsXY location = { locationCoords.x * 32, locationCoords.y * 32 };
CoordsXY location = locationCoords.ToCoordsXY();
TileElement* tileElement = map_get_first_element_at(location);
if (tileElement == nullptr)