From d8fe9eef9d81799ca86dfd4d7b0777ca16bf751e Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Fri, 2 Jun 2017 00:29:50 +0100 Subject: [PATCH] Name sub_6A759F() --- src/openrct2/ride/ride.c | 2 +- src/openrct2/ride/track_design.c | 2 +- src/openrct2/world/entrance.cpp | 4 ++-- src/openrct2/world/footpath.c | 8 ++++---- src/openrct2/world/footpath.h | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/openrct2/ride/ride.c b/src/openrct2/ride/ride.c index f117264797..3625755f9d 100644 --- a/src/openrct2/ride/ride.c +++ b/src/openrct2/ride/ride.c @@ -8015,7 +8015,7 @@ void sub_6CB945(sint32 rideIndex) footpath_queue_chain_reset(); maze_entrance_hedge_replacement(location.x, location.y, mapElement); footpath_remove_edges_at(location.x, location.y, mapElement); - sub_6A759F(); + footpath_update_queue_chains(); map_invalidate_tile_full(location.x, location.y); map_element_remove(mapElement); mapElement--; diff --git a/src/openrct2/ride/track_design.c b/src/openrct2/ride/track_design.c index 49cde38aa6..f51f437015 100644 --- a/src/openrct2/ride/track_design.c +++ b/src/openrct2/ride/track_design.c @@ -870,7 +870,7 @@ static sint32 track_design_place_scenery(rct_td6_scenery_element *scenery_start, if (_trackDesignPlaceOperation == PTD_OPERATION_4) bl = 105; footpath_connect_edges(mapCoord.x, mapCoord.y, map_element, bl); - sub_6A759F(); + footpath_update_queue_chains(); continue; } break; diff --git a/src/openrct2/world/entrance.cpp b/src/openrct2/world/entrance.cpp index 99fb6390a2..e4d1e6dbc8 100644 --- a/src/openrct2/world/entrance.cpp +++ b/src/openrct2/world/entrance.cpp @@ -440,7 +440,7 @@ static money32 RideEntranceExitPlace(sint16 x, } footpath_connect_edges(x, y, mapElement, flags); - sub_6A759F(); + footpath_update_queue_chains(); map_invalidate_tile_full(x, y); } @@ -546,7 +546,7 @@ static money32 RideEntranceExitRemove(sint16 x, sint16 y, uint8 rideIndex, uint8 ride->entrances[stationNum] = 0xFFFF; } - sub_6A759F(); + footpath_update_queue_chains(); map_invalidate_tile_full(x, y); } diff --git a/src/openrct2/world/footpath.c b/src/openrct2/world/footpath.c index 4b2b74c705..2404f60d71 100644 --- a/src/openrct2/world/footpath.c +++ b/src/openrct2/world/footpath.c @@ -161,7 +161,7 @@ static void loc_6A6620(sint32 flags, sint32 x, sint32 y, rct_map_element *mapEle if (!(flags & GAME_COMMAND_FLAG_7)) footpath_connect_edges(x, y, mapElement, flags); - sub_6A759F(); + footpath_update_queue_chains(); map_invalidate_tile_full(x, y); } @@ -446,7 +446,7 @@ money32 footpath_remove_real(sint32 x, sint32 y, sint32 z, sint32 flags) footpath_remove_edges_at(x, y, mapElement); map_invalidate_tile_full(x, y); map_element_remove(mapElement); - sub_6A759F(); + footpath_update_queue_chains(); } money32 cost = -MONEY(10,00); @@ -1302,7 +1302,7 @@ void footpath_connect_edges(sint32 x, sint32 y, rct_map_element *mapElement, sin rct_neighbour_list neighbourList; rct_neighbour neighbour; - sub_6A759F(); + footpath_update_queue_chains(); neighbour_list_init(&neighbourList); @@ -1474,7 +1474,7 @@ void footpath_queue_chain_push(uint8 rideIndex) * * rct2: 0x006A759F */ -void sub_6A759F() +void footpath_update_queue_chains() { for (uint8 *queueChainPtr = _footpathQueueChain; queueChainPtr < _footpathQueueChainNext; queueChainPtr++) { uint8 rideIndex = *queueChainPtr; diff --git a/src/openrct2/world/footpath.h b/src/openrct2/world/footpath.h index 60e2da8745..ba9eb9086f 100644 --- a/src/openrct2/world/footpath.h +++ b/src/openrct2/world/footpath.h @@ -87,7 +87,7 @@ void footpath_get_coordinates_from_pos(sint32 screenX, sint32 screenY, sint32 *x void footpath_bridge_get_info_from_pos(sint32 screenX, sint32 screenY, sint32 *x, sint32 *y, sint32 *direction, rct_map_element **mapElement); void footpath_remove_litter(sint32 x, sint32 y, sint32 z); void footpath_connect_edges(sint32 x, sint32 y, rct_map_element *mapElement, sint32 flags); -void sub_6A759F(); +void footpath_update_queue_chains(); bool fence_in_the_way(sint32 x, sint32 y, sint32 z0, sint32 z1, sint32 direction); void footpath_chain_ride_queue(sint32 rideIndex, sint32 entranceIndex, sint32 x, sint32 y, rct_map_element *mapElement, sint32 direction); void footpath_update_path_wide_flags(sint32 x, sint32 y);