diff options
author | tron <tron@openttd.org> | 2006-11-22 16:08:01 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-11-22 16:08:01 +0000 |
commit | 878006e302090fa2477111fea5973f4e313f362b (patch) | |
tree | d2df3370917d66d4c0b26706181f24709d05fb07 /airport_gui.c | |
parent | b0c56742affca8cc61a2240aaf4e124b0e305dfd (diff) | |
download | openttd-878006e302090fa2477111fea5973f4e313f362b.tar.xz |
(svn r7239) Enumerate the widgets in the airport, dock, rail and road toolbars
Diffstat (limited to 'airport_gui.c')
-rw-r--r-- | airport_gui.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/airport_gui.c b/airport_gui.c index 33e6ad96e..c049d50d5 100644 --- a/airport_gui.c +++ b/airport_gui.c @@ -41,14 +41,20 @@ static void PlaceAir_DemolishArea(TileIndex tile) } +enum { + ATW_AIRPORT = 3, + ATW_DEMOLISH = 4 +}; + + static void BuildAirClick_Airport(Window *w) { - if (HandlePlacePushButton(w, 3, SPR_CURSOR_AIRPORT, 1, PlaceAirport)) ShowBuildAirportPicker(); + if (HandlePlacePushButton(w, ATW_AIRPORT, SPR_CURSOR_AIRPORT, 1, PlaceAirport)) ShowBuildAirportPicker(); } static void BuildAirClick_Demolish(Window *w) { - HandlePlacePushButton(w, 4, ANIMCURSOR_DEMOLISH, 1, PlaceAir_DemolishArea); + HandlePlacePushButton(w, ATW_DEMOLISH, ANIMCURSOR_DEMOLISH, 1, PlaceAir_DemolishArea); } static void BuildAirClick_Landscaping(Window *w) |