summaryrefslogtreecommitdiff
path: root/airport_gui.c
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-09-23 02:39:24 +0000
committerbelugas <belugas@openttd.org>2006-09-23 02:39:24 +0000
commit98ba395277708f1e1fbddacee1f909fac366e96c (patch)
tree94c5771fcfbd839db8eabe8b14662d04e44ab61c /airport_gui.c
parente20c8be1722ab9d1aa23b3b8bfb8207628f8322e (diff)
downloadopenttd-98ba395277708f1e1fbddacee1f909fac366e96c.tar.xz
(svn r6499) -Codechange: Finally, got "byte event" outside of the union WindowEvent, which is now a struct
Diffstat (limited to 'airport_gui.c')
-rw-r--r--airport_gui.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/airport_gui.c b/airport_gui.c
index e2927c767..de039ad71 100644
--- a/airport_gui.c
+++ b/airport_gui.c
@@ -71,12 +71,12 @@ static void BuildAirToolbWndProc(Window *w, WindowEvent *e)
break;
case WE_CLICK:
- if (e->click.widget - 3 >= 0)
- _build_air_button_proc[e->click.widget - 3](w);
+ if (e->we.click.widget - 3 >= 0)
+ _build_air_button_proc[e->we.click.widget - 3](w);
break;
case WE_KEYPRESS: {
- switch (e->keypress.keycode) {
+ switch (e->we.keypress.keycode) {
case '1': BuildAirClick_Airport(w); break;
case '2': BuildAirClick_Demolish(w); break;
case 'l': BuildAirClick_Landscaping(w); break;
@@ -85,16 +85,16 @@ static void BuildAirToolbWndProc(Window *w, WindowEvent *e)
} break;
case WE_PLACE_OBJ:
- _place_proc(e->place.tile);
+ _place_proc(e->we.place.tile);
break;
case WE_PLACE_DRAG:
- VpSelectTilesWithMethod(e->place.pt.x, e->place.pt.y, e->place.userdata);
+ VpSelectTilesWithMethod(e->we.place.pt.x, e->we.place.pt.y, e->we.place.userdata);
break;
case WE_PLACE_MOUSEUP:
- if (e->place.pt.x != -1) {
- DoCommandP(e->place.tile, e->place.starttile, 0, CcPlaySound10, CMD_CLEAR_AREA | CMD_MSG(STR_00B5_CAN_T_CLEAR_THIS_AREA));
+ if (e->we.place.pt.x != -1) {
+ DoCommandP(e->we.place.tile, e->we.place.starttile, 0, CcPlaySound10, CMD_CLEAR_AREA | CMD_MSG(STR_00B5_CAN_T_CLEAR_THIS_AREA));
}
break;
@@ -192,14 +192,14 @@ static void BuildAirportPickerWndProc(Window *w, WindowEvent *e)
}
case WE_CLICK: {
- switch (e->click.widget) {
+ switch (e->we.click.widget) {
case 7: case 8: case 9: case 10: case 11: case 12: case 13: case 14: case 15:
- _selected_airport_type = e->click.widget - 7;
+ _selected_airport_type = e->we.click.widget - 7;
SndPlayFx(SND_15_BEEP);
SetWindowDirty(w);
break;
case 16: case 17:
- _station_show_coverage = e->click.widget - 16;
+ _station_show_coverage = e->we.click.widget - 16;
SndPlayFx(SND_15_BEEP);
SetWindowDirty(w);
break;