Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pierre Kim
OpenRCT2-mod
Commits
b1b5fa9c
Commit
b1b5fa9c
authored
8 years ago
by
Jacob W. Breen
Committed by
Ted John
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix #4972: Map window not updated properly when shrinking map...
parent
b3e079c7
develop
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
contributors.md
+1
-0
contributors.md
src/openrct2/interface/window.h
+1
-0
src/openrct2/interface/window.h
src/openrct2/windows/map.c
+14
-0
src/openrct2/windows/map.c
src/openrct2/world/map.c
+2
-0
src/openrct2/world/map.c
with
18 additions
and
0 deletions
+18
-0
contributors.md
+
1
-
0
View file @
b1b5fa9c
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/openrct2/interface/window.h
+
1
-
0
View file @
b1b5fa9c
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
src/openrct2/windows/map.c
+
14
-
0
View file @
b1b5fa9c
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/openrct2/world/map.c
+
2
-
0
View file @
b1b5fa9c
...
...
@@ -398,6 +398,8 @@ void map_init(sint32 size)
gMapBaseZ
=
7
;
map_update_tile_pointers
();
map_remove_out_of_range_elements
();
window_map_reset
();
}
/**
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help