diff options
author | rubidium <rubidium@openttd.org> | 2008-04-18 10:58:11 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-18 10:58:11 +0000 |
commit | 8857f5057f888b769b52005202f5044df417bd24 (patch) | |
tree | 39476476c4a047035bdfb8a3f742514c674d60f0 /src/group_gui.cpp | |
parent | d46d8d9c9d75dda0b3688d8f74313acd4e2a84a9 (diff) | |
download | openttd-8857f5057f888b769b52005202f5044df417bd24.tar.xz |
(svn r12766) -Add: sorting by road vehicle/train length. Based on a patch by Sir Bob.
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r-- | src/group_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp index efa8c1af1..967b66f9f 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -523,7 +523,7 @@ static void GroupWndProc(Window *w, WindowEvent *e) break; case GRP_WIDGET_SORT_BY_DROPDOWN: // Select sorting criteria dropdown menu - ShowDropDownMenu(w, _vehicle_sort_listing, gv->l.sort_type, GRP_WIDGET_SORT_BY_DROPDOWN, 0, 0); + ShowDropDownMenu(w, _vehicle_sort_listing, gv->l.sort_type, GRP_WIDGET_SORT_BY_DROPDOWN, 0, (gv->vehicle_type == VEH_TRAIN || gv->vehicle_type == VEH_ROAD) ? 0 : (1 << 10)); return; case GRP_WIDGET_ALL_VEHICLES: // All vehicles button |