summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-10-10 08:34:14 +0000
committerbjarni <bjarni@openttd.org>2006-10-10 08:34:14 +0000
commit3a94561f253e595b30e8ee50e511c19bb1da99f7 (patch)
treee93e939cec0a1f30c066d56f0f30e274439dec8e
parent6b42ffc95ef43f2815408c76d1c243b434f4fe09 (diff)
downloadopenttd-3a94561f253e595b30e8ee50e511c19bb1da99f7.tar.xz
(svn r6716) -Code cleanup: [aircraft/train build windows] fixed a spelling mistake in the widget names (the game itself is unaffected by this)
-rw-r--r--aircraft_gui.c4
-rw-r--r--train_gui.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/aircraft_gui.c b/aircraft_gui.c
index e17387120..33598f59b 100644
--- a/aircraft_gui.c
+++ b/aircraft_gui.c
@@ -29,7 +29,7 @@
typedef enum BuildAircraftWidgets {
BUILD_AIRCRAFT_WIDGET_CLOSEBOX = 0,
BUILD_AIRCRAFT_WIDGET_CAPTION,
- BUILD_AIRCRAFT_WIDGET_SORT_ASSENDING_DESENTING,
+ BUILD_AIRCRAFT_WIDGET_SORT_ASSENDING_DESCENDING,
BUILD_AIRCRAFT_WIDGET_SORT_TEXT,
BUILD_AIRCRAFT_WIDGET_SORT_DROPDOWN,
BUILD_AIRCRAFT_WIDGET_LIST,
@@ -437,7 +437,7 @@ static void BuildAircraftClickEvent(Window *w, WindowEvent *e)
byte click_state = 0;
switch (e->we.click.widget) {
- case BUILD_AIRCRAFT_WIDGET_SORT_ASSENDING_DESENTING:
+ case BUILD_AIRCRAFT_WIDGET_SORT_ASSENDING_DESCENDING:
WP(w,buildvehicle_d).decenting_sort_order = !WP(w,buildvehicle_d).decenting_sort_order;
_last_sort_order = WP(w,buildvehicle_d).decenting_sort_order;
SortAircraftBuildList(w);
diff --git a/train_gui.c b/train_gui.c
index cd9eff36f..292d88f5c 100644
--- a/train_gui.c
+++ b/train_gui.c
@@ -27,7 +27,7 @@
typedef enum BuildTrainWidgets {
BUILD_TRAIN_WIDGET_CLOSEBOX = 0,
BUILD_TRAIN_WIDGET_CAPTION,
- BUILD_TRAIN_WIDGET_SORT_ASSENDING_DESENTING,
+ BUILD_TRAIN_WIDGET_SORT_ASSENDING_DESCENDING,
BUILD_TRAIN_WIDGET_SORT_TEXT,
BUILD_TRAIN_WIDGET_SORT_DROPDOWN,
BUILD_TRAIN_WIDGET_LIST,
@@ -563,7 +563,7 @@ static void NewRailVehicleWndProc(Window *w, WindowEvent *e)
case WE_CLICK: {
switch (e->we.click.widget) {
- case BUILD_TRAIN_WIDGET_SORT_ASSENDING_DESENTING:
+ case BUILD_TRAIN_WIDGET_SORT_ASSENDING_DESCENDING:
WP(w,buildvehicle_d).decenting_sort_order = !WP(w,buildvehicle_d).decenting_sort_order;
_last_sort_order = WP(w,buildvehicle_d).decenting_sort_order;
SortTrainBuildList(w);