diff options
author | Darkvater <darkvater@openttd.org> | 2006-10-28 23:47:00 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-10-28 23:47:00 +0000 |
commit | fce44a1ce7ebb461ddff516a2a508fb91684a49e (patch) | |
tree | fdaf34aa21fccdd3d6252619b55115d722ab5eaa /terraform_gui.c | |
parent | 1d0ebb9cc3198e51ace4e361572da00700c9d564 (diff) | |
download | openttd-fce44a1ce7ebb461ddff516a2a508fb91684a49e.tar.xz |
(svn r7000) -Fix: Incorrect use of e->we.click when the event is a 'place'. This didn't cause any
bugs so far because the 'click' element was at the same position in the union for both
events.
Diffstat (limited to 'terraform_gui.c')
-rw-r--r-- | terraform_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |