mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-02 19:56:13 +01:00
Merge pull request #10515 from tupaschoal/use-more-coords-4
Use CoordsXY* on world/Footpath.cpp
This commit is contained in:
@@ -1192,7 +1192,7 @@ static bool TrackDesignPlaceSceneryElement(
|
||||
}
|
||||
|
||||
footpath_queue_chain_reset();
|
||||
footpath_remove_edges_at(mapCoord.x, mapCoord.y, reinterpret_cast<TileElement*>(pathElement));
|
||||
footpath_remove_edges_at(mapCoord, reinterpret_cast<TileElement*>(pathElement));
|
||||
|
||||
flags = GAME_COMMAND_FLAG_APPLY;
|
||||
if (_trackDesignPlaceOperation == PTD_OPERATION_PLACE_TRACK_PREVIEW)
|
||||
@@ -1205,7 +1205,7 @@ static bool TrackDesignPlaceSceneryElement(
|
||||
| GAME_COMMAND_FLAG_GHOST;
|
||||
}
|
||||
|
||||
footpath_connect_edges(mapCoord.x, mapCoord.y, reinterpret_cast<TileElement*>(pathElement), flags);
|
||||
footpath_connect_edges(mapCoord, reinterpret_cast<TileElement*>(pathElement), flags);
|
||||
footpath_update_queue_chains();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user