mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 13:03:11 +01:00
Fix #4726: Checking wrong x value
This commit is contained in:
committed by
Ted John
parent
0f8cec0df8
commit
12bd31bc52
@@ -1217,7 +1217,7 @@ void window_guest_overview_tool_down(rct_window* w, int widgetIndex, int x, int
|
||||
rct_map_element* mapElement;
|
||||
footpath_get_coordinates_from_pos(x, y + 16, &dest_x, &dest_y, NULL, &mapElement);
|
||||
|
||||
if (x == (sint16)0x8000)
|
||||
if (dest_x == (sint16)0x8000)
|
||||
return;
|
||||
|
||||
game_command_callback = game_command_callback_pickup_guest;
|
||||
|
||||
@@ -1162,7 +1162,7 @@ void window_staff_overview_tool_down(rct_window* w, int widgetIndex, int x, int
|
||||
rct_map_element* mapElement;
|
||||
footpath_get_coordinates_from_pos(x, y + 16, &dest_x, &dest_y, NULL, &mapElement);
|
||||
|
||||
if (x == (sint16)0x8000)
|
||||
if (dest_x == (sint16)0x8000)
|
||||
return;
|
||||
|
||||
game_command_callback = game_command_callback_pickup_staff;
|
||||
|
||||
Reference in New Issue
Block a user