mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 16:24:35 +01:00
Make Map::map_get_first_element_at() use CoordsXY (#10413)
* Make Map::map_get_first_element_at() use CoordsXY * Fix clang-format on ClearAction.hpp * Prefer TileDIrectionDelta over hardcoded delta on RideConstruction * Use named Direction constants * Make Compat::map_get_first_element_at() use CoordsXY
This commit is contained in:
@@ -598,7 +598,7 @@ const rct_preview_track* get_track_def_from_ride_index(ride_id_t rideIndex, int3
|
||||
|
||||
static TileElement* find_station_element(int32_t x, int32_t y, int32_t z, int32_t direction, ride_id_t rideIndex)
|
||||
{
|
||||
TileElement* tileElement = map_get_first_element_at(x >> 5, y >> 5);
|
||||
TileElement* tileElement = map_get_first_element_at({ x, y });
|
||||
if (tileElement == nullptr)
|
||||
return nullptr;
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user