1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 09:44:52 +01:00

Make Map::map_get_track_element_at_with_direction_from_ride() use CoordsXYZD

This commit is contained in:
Tulio Leao
2019-12-23 09:39:14 -03:00
parent 6ab46bd74a
commit 81647b3dd8
3 changed files with 8 additions and 8 deletions

View File

@@ -807,7 +807,8 @@ bool track_remove_station_element(int32_t x, int32_t y, int32_t z, int32_t direc
if (ride_type_has_flag(ride->type, RIDE_TYPE_FLAG_3))
{
TileElement* tileElement = map_get_track_element_at_with_direction_from_ride(x, y, z, direction, rideIndex);
TileElement* tileElement = map_get_track_element_at_with_direction_from_ride(
{ x, y, z << 3, static_cast<Direction>(direction) }, rideIndex);
if (tileElement != nullptr)
{
if (flags & GAME_COMMAND_FLAG_APPLY)