1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 22:13:07 +01:00

Remove snakes from the foopaths

This commit is contained in:
duncanspumpkin
2022-10-04 07:51:27 +01:00
parent 2c29190ff8
commit 3e8dc1b2ac
42 changed files with 266 additions and 268 deletions

View File

@@ -1259,8 +1259,8 @@ static GameActions::Result TrackDesignPlaceSceneryElement(
if (tds.PlaceOperation == PTD_OPERATION_PLACE)
{
footpath_queue_chain_reset();
footpath_remove_edges_at(mapCoord, reinterpret_cast<TileElement*>(pathElement));
FootpathQueueChainReset();
FootpathRemoveEdgesAt(mapCoord, reinterpret_cast<TileElement*>(pathElement));
}
flags = GAME_COMMAND_FLAG_APPLY;
@@ -1280,8 +1280,8 @@ static GameActions::Result TrackDesignPlaceSceneryElement(
if (tds.PlaceOperation == PTD_OPERATION_PLACE)
{
footpath_connect_edges(mapCoord, reinterpret_cast<TileElement*>(pathElement), flags);
footpath_update_queue_chains();
FootpathConnectEdges(mapCoord, reinterpret_cast<TileElement*>(pathElement), flags);
FootpathUpdateQueueChains();
}
return GameActions::Result();