mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-03 04:05:49 +01:00
Start refactoring pathfinding to use tileCoords
This commit is contained in:
@@ -1547,8 +1547,8 @@ static bool track_design_place_ride(rct_track_td6 * td6, sint16 x, sint16 y, sin
|
||||
}
|
||||
else
|
||||
{
|
||||
x += TileDirectionDelta[rotation].x;
|
||||
y += TileDirectionDelta[rotation].y;
|
||||
x += CoordsDirectionDelta[rotation].x;
|
||||
y += CoordsDirectionDelta[rotation].y;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1585,8 +1585,8 @@ static bool track_design_place_ride(rct_track_td6 * td6, sint16 x, sint16 y, sin
|
||||
if (_trackDesignPlaceOperation != PTD_OPERATION_1)
|
||||
{
|
||||
LocationXY16 tile = {
|
||||
(sint16) (x + TileDirectionDelta[rotation].x),
|
||||
(sint16) (y + TileDirectionDelta[rotation].y)
|
||||
(sint16) (x + CoordsDirectionDelta[rotation].x),
|
||||
(sint16) (y + CoordsDirectionDelta[rotation].y)
|
||||
};
|
||||
rct_tile_element * tile_element = map_get_first_element_at(tile.x >> 5, tile.y >> 5);
|
||||
z = gTrackPreviewOrigin.z / 8;
|
||||
|
||||
Reference in New Issue
Block a user