diff options
-rw-r--r-- | dock_gui.c | 2 | ||||
-rw-r--r-- | main_gui.c | 2 | ||||
-rw-r--r-- | misc_gui.c | 2 | ||||
-rw-r--r-- | rail_gui.c | 2 | ||||
-rw-r--r-- | terraform_gui.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/dock_gui.c b/dock_gui.c index 3b47b6eec..571c91985 100644 --- a/dock_gui.c +++ b/dock_gui.c @@ -147,7 +147,7 @@ static void BuildDocksToolbWndProc(Window *w, WindowEvent *e) } case WE_PLACE_MOUSEUP: - if (e->we.click.pt.x != -1) { + if (e->we.place.pt.x != -1) { if ((e->we.place.userdata & 0xF) == VPM_X_AND_Y) { // dragged actions GUIPlaceProcDragXY(e); } else if (e->we.place.userdata == VPM_X_OR_Y) { diff --git a/main_gui.c b/main_gui.c index 022e9a49a..bb354e16b 100644 --- a/main_gui.c +++ b/main_gui.c @@ -1351,7 +1351,7 @@ static void ScenEditLandGenWndProc(Window *w, WindowEvent *e) break; case WE_PLACE_MOUSEUP: - if (e->we.click.pt.x != -1) { + if (e->we.place.pt.x != -1) { if ((e->we.place.userdata & 0xF) == VPM_X_AND_Y) // dragged actions GUIPlaceProcDragXY(e); } diff --git a/misc_gui.c b/misc_gui.c index 168255c15..583f5d571 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -374,7 +374,7 @@ static void BuildTreesWndProc(Window *w, WindowEvent *e) return; case WE_PLACE_MOUSEUP: - if (e->we.click.pt.x != -1) { + if (e->we.place.pt.x != -1) { DoCommandP(e->we.place.tile, _tree_to_plant, e->we.place.starttile, NULL, CMD_PLANT_TREE | CMD_AUTO | CMD_MSG(STR_2805_CAN_T_PLANT_TREE_HERE)); } diff --git a/rail_gui.c b/rail_gui.c index 6a09dad4b..60fcdafb9 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -464,7 +464,7 @@ static void BuildRailToolbWndProc(Window *w, WindowEvent *e) } case WE_PLACE_MOUSEUP: - if (e->we.click.pt.x != -1) { + if (e->we.place.pt.x != -1) { TileIndex start_tile = e->we.place.starttile; TileIndex end_tile = e->we.place.tile; diff --git a/terraform_gui.c b/terraform_gui.c index df766e499..1377a93a3 100644 --- a/terraform_gui.c +++ b/terraform_gui.c @@ -235,7 +235,7 @@ static void TerraformToolbWndProc(Window *w, WindowEvent *e) break; case WE_PLACE_MOUSEUP: - if (e->we.click.pt.x != -1 && + if (e->we.place.pt.x != -1 && (e->we.place.userdata & 0xF) == VPM_X_AND_Y) { // dragged actions GUIPlaceProcDragXY(e); } |