mirror of https://github.com/OpenRCT2/OpenRCT2.git
Rename sub_68AE2A to clear_elements_at
This commit is contained in:
parent
01c4c0adc5
commit
ed9334f944
|
@ -71,7 +71,7 @@ bool gClearFootpath;
|
|||
static void tiles_init();
|
||||
static void map_update_grass_length(int x, int y, rct_map_element *mapElement);
|
||||
static void map_set_grass_length(int x, int y, rct_map_element *mapElement, int length);
|
||||
static void sub_68AE2A(int x, int y);
|
||||
static void clear_elements_at(int x, int y);
|
||||
static void translate_3d_to_2d(int rotation, int *x, int *y);
|
||||
static void map_obstruction_set_error_text(rct_map_element *mapElement);
|
||||
|
||||
|
@ -4384,7 +4384,7 @@ void map_remove_out_of_range_elements()
|
|||
for (int y = 0; y < (256 * 32); y += 32) {
|
||||
for (int x = 0; x < (256 * 32); x += 32) {
|
||||
if (x == 0 || y == 0 || x >= mapMaxXY || y >= mapMaxXY) {
|
||||
sub_68AE2A(x, y);
|
||||
clear_elements_at(x, y);
|
||||
} else if (x >= mapMaxXY - 32 || y >= mapMaxXY - 32) {
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_MAP_SIZE_UNITS, uint16) += 32;
|
||||
map_buy_land_rights(x, y, x, y, 6, GAME_COMMAND_FLAG_APPLY);
|
||||
|
@ -4473,7 +4473,11 @@ void map_extend_boundary_surface()
|
|||
|
||||
}
|
||||
|
||||
static void sub_68AE2A(int x, int y)
|
||||
/**
|
||||
* Clears all elements properly from a certain tile.
|
||||
* rct2: 0x0068AE2A
|
||||
*/
|
||||
static void clear_elements_at(int x, int y)
|
||||
{
|
||||
for (;;) {
|
||||
rct2_peep_spawn *peepSpawns = RCT2_ADDRESS(RCT2_ADDRESS_PEEP_SPAWNS, rct2_peep_spawn);
|
||||
|
@ -4894,7 +4898,7 @@ void map_clear_all_elements()
|
|||
{
|
||||
for (int y = 0; y < (256 * 32); y += 32) {
|
||||
for (int x = 0; x < (256 * 32); x += 32) {
|
||||
sub_68AE2A(x, y);
|
||||
clear_elements_at(x, y);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue