diff options
author | belugas <belugas@openttd.org> | 2006-09-23 02:39:24 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2006-09-23 02:39:24 +0000 |
commit | 1c56a5ae0fefac5636a7f93c3bed9285fca558d8 (patch) | |
tree | 94c5771fcfbd839db8eabe8b14662d04e44ab61c /bridge_gui.c | |
parent | 0f78b620fbb4e4ca744ceffffc43a9c0846bca12 (diff) | |
download | openttd-1c56a5ae0fefac5636a7f93c3bed9285fca558d8.tar.xz |
(svn r6499) -Codechange: Finally, got "byte event" outside of the union WindowEvent, which is now a struct
Diffstat (limited to 'bridge_gui.c')
-rw-r--r-- | bridge_gui.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bridge_gui.c b/bridge_gui.c index 1ee87f1cd..c3a808820 100644 --- a/bridge_gui.c +++ b/bridge_gui.c @@ -59,9 +59,9 @@ static void BuildBridgeWndProc(Window *w, WindowEvent *e) } break; case WE_KEYPRESS: { - uint i = e->keypress.keycode - '1'; + uint i = e->we.keypress.keycode - '1'; if (i < 9 && i < _bridgedata.count) { - e->keypress.cont = false; + e->we.keypress.cont = false; BuildBridge(w, i); } @@ -69,8 +69,8 @@ static void BuildBridgeWndProc(Window *w, WindowEvent *e) } case WE_CLICK: - if (e->click.widget == 2) { - uint ind = ((int)e->click.pt.y - 14) / 22; + if (e->we.click.widget == 2) { + uint ind = ((int)e->we.click.pt.y - 14) / 22; if (ind < 4 && (ind += w->vscroll.pos) < _bridgedata.count) BuildBridge(w, ind); } |