Commit b1b5fa9c authored by Jacob W. Breen's avatar Jacob W. Breen Committed by Ted John
Browse files

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

parent b3e079c7
No related merge requests found
Showing with 18 additions and 0 deletions
+18 -0
......@@ -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
......
......@@ -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();
......
......@@ -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
......
......@@ -398,6 +398,8 @@ void map_init(sint32 size)
gMapBaseZ = 7;
map_update_tile_pointers();
map_remove_out_of_range_elements();
window_map_reset();
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment