Fix #4972: Map window not updated properly when shrinking map...

This commit is contained in:
Jacob W. Breen 2017-02-09 13:54:03 -05:00 committed by Ted John
parent b3e079c7fa
commit b1b5fa9c5a
4 changed files with 18 additions and 0 deletions

View File

@ -72,6 +72,7 @@ Includes all git commit authors. Aliases are GitHub user names.
* Sven Slootweg (joepie91)
* Daniel Trujillo Viedma (gDanix)
* Jonathan Haas (HaasJona)
* Jake Breen (Haekb)
## Toolchain
* (Balletie) - macOS

View File

@ -740,6 +740,7 @@ void window_align_tabs( rct_window *w, uint8 start_tab_id, uint8 end_tab_id );
void window_new_ride_init_vars();
void window_new_ride_focus(ride_list_item rideItem);
void window_map_reset();
void window_map_tooltip_update_visibility();
void window_staff_list_init_vars();

View File

@ -252,6 +252,20 @@ void window_map_open()
gLandToolSize = 1;
}
void window_map_reset()
{
rct_window *w;
// Check if window is even opened
w = window_bring_to_front_by_class(WC_MAP);
if (w == NULL) {
return;
}
window_map_init_map();
window_map_center_on_view_point();
}
/**
*
* rct2: 0x0068D0F1

View File

@ -398,6 +398,8 @@ void map_init(sint32 size)
gMapBaseZ = 7;
map_update_tile_pointers();
map_remove_out_of_range_elements();
window_map_reset();
}
/**