(svn r6716) -Code cleanup: [aircraft/train build windows] fixed a spelling mistake in the widget names (the game itself is unaffected by this)

This commit is contained in:
bjarni 2006-10-10 08:34:14 +00:00
parent 67ac92e652
commit 239991944d
2 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@
typedef enum BuildAircraftWidgets { typedef enum BuildAircraftWidgets {
BUILD_AIRCRAFT_WIDGET_CLOSEBOX = 0, BUILD_AIRCRAFT_WIDGET_CLOSEBOX = 0,
BUILD_AIRCRAFT_WIDGET_CAPTION, 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_TEXT,
BUILD_AIRCRAFT_WIDGET_SORT_DROPDOWN, BUILD_AIRCRAFT_WIDGET_SORT_DROPDOWN,
BUILD_AIRCRAFT_WIDGET_LIST, BUILD_AIRCRAFT_WIDGET_LIST,
@ -437,7 +437,7 @@ static void BuildAircraftClickEvent(Window *w, WindowEvent *e)
byte click_state = 0; byte click_state = 0;
switch (e->we.click.widget) { 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; WP(w,buildvehicle_d).decenting_sort_order = !WP(w,buildvehicle_d).decenting_sort_order;
_last_sort_order = WP(w,buildvehicle_d).decenting_sort_order; _last_sort_order = WP(w,buildvehicle_d).decenting_sort_order;
SortAircraftBuildList(w); SortAircraftBuildList(w);

View File

@ -27,7 +27,7 @@
typedef enum BuildTrainWidgets { typedef enum BuildTrainWidgets {
BUILD_TRAIN_WIDGET_CLOSEBOX = 0, BUILD_TRAIN_WIDGET_CLOSEBOX = 0,
BUILD_TRAIN_WIDGET_CAPTION, 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_TEXT,
BUILD_TRAIN_WIDGET_SORT_DROPDOWN, BUILD_TRAIN_WIDGET_SORT_DROPDOWN,
BUILD_TRAIN_WIDGET_LIST, BUILD_TRAIN_WIDGET_LIST,
@ -563,7 +563,7 @@ static void NewRailVehicleWndProc(Window *w, WindowEvent *e)
case WE_CLICK: { case WE_CLICK: {
switch (e->we.click.widget) { 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; WP(w,buildvehicle_d).decenting_sort_order = !WP(w,buildvehicle_d).decenting_sort_order;
_last_sort_order = WP(w,buildvehicle_d).decenting_sort_order; _last_sort_order = WP(w,buildvehicle_d).decenting_sort_order;
SortTrainBuildList(w); SortTrainBuildList(w);