Add maximum speed (fully loaded) to train window sort list

This commit is contained in:
Jonathan G Rennison
2021-09-18 23:51:08 +01:00
parent 2e626d70e8
commit 9ad5e4baf0
4 changed files with 45 additions and 5 deletions

View File

@@ -731,8 +731,7 @@ public:
return;
case WID_GL_SORT_BY_DROPDOWN: // Select sorting criteria dropdown menu
ShowDropDownMenu(this, this->GetVehicleSorterNames(), this->vehgroups.SortType(), WID_GL_SORT_BY_DROPDOWN, 0,
(this->vli.vtype == VEH_TRAIN || this->vli.vtype == VEH_ROAD) ? 0 : this->vehicle_sorter_non_ground_veh_disable_mask);
ShowDropDownMenu(this, this->GetVehicleSorterNames(), this->vehgroups.SortType(), WID_GL_SORT_BY_DROPDOWN, 0, this->GetSorterDisableMask(this->vli.vtype));
return;
case WID_GL_FILTER_BY_CARGO: // Select filtering criteria dropdown menu