1
0
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:
Yaroslav Tretyakov
2016-10-31 02:20:52 -06:00
committed by Ted John
parent 0f8cec0df8
commit 12bd31bc52
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;