Name sub_6A759F()

This commit is contained in:
Richard Jenkins 2017-06-02 00:29:50 +01:00 committed by rwjuk
parent 1d2ced2ad7
commit d8fe9eef9d
5 changed files with 9 additions and 9 deletions

View File

@ -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--;

View File

@ -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;

View File

@ -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);
}

View File

@ -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;

View File

@ -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);