1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 17:42:29 +01:00

fix window_map_tooltip using original window events instead of new

This commit is contained in:
IntelOrca
2014-10-21 11:07:11 +01:00
parent 3c647579d0
commit 287b614392

View File

@@ -122,8 +122,10 @@ static void window_map_tooltip_open()
w = window_find_by_class(WC_MAP_TOOLTIP);
if (w == NULL) {
w = window_create(x, y, width, height, (uint32*)0x009A43D4, WC_MAP_TOOLTIP, WF_STICK_TO_FRONT | WF_TRANSPARENT | WF_5);
w->widgets = (rct_widget*)0x009DEEFC;
w = window_create(
x, y, width, height, (uint32*)window_map_tooltip_events, WC_MAP_TOOLTIP, WF_STICK_TO_FRONT | WF_TRANSPARENT | WF_5
);
w->widgets = window_map_tooltip_widgets;
} else {
window_invalidate(w);
w->x = x;