Merge branch 'lifetime_profit' into lifetime_profit-sx
This commit is contained in:
		@@ -586,7 +586,8 @@ public:
 | 
				
			|||||||
				break;
 | 
									break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			case WID_GL_SORT_BY_DROPDOWN: // Select sorting criteria dropdown menu
 | 
								case WID_GL_SORT_BY_DROPDOWN: // Select sorting criteria dropdown menu
 | 
				
			||||||
				ShowDropDownMenu(this, this->vehicle_sorter_names, this->vehicles.SortType(),  WID_GL_SORT_BY_DROPDOWN, 0, (this->vli.vtype == VEH_TRAIN || this->vli.vtype == VEH_ROAD) ? 0 : (1 << 10));
 | 
									ShowDropDownMenu(this, this->vehicle_sorter_names, this->vehicles.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);
 | 
				
			||||||
				return;
 | 
									return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			case WID_GL_ALL_VEHICLES: // All vehicles button
 | 
								case WID_GL_ALL_VEHICLES: // All vehicles button
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1631,7 +1631,7 @@ public:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
			case WID_VL_SORT_BY_PULLDOWN:// Select sorting criteria dropdown menu
 | 
								case WID_VL_SORT_BY_PULLDOWN:// Select sorting criteria dropdown menu
 | 
				
			||||||
				ShowDropDownMenu(this, this->vehicle_sorter_names, this->vehicles.SortType(), WID_VL_SORT_BY_PULLDOWN, 0,
 | 
									ShowDropDownMenu(this, this->vehicle_sorter_names, this->vehicles.SortType(), WID_VL_SORT_BY_PULLDOWN, 0,
 | 
				
			||||||
						(this->vli.vtype == VEH_TRAIN || this->vli.vtype == VEH_ROAD) ? 0 : (1 << 10));
 | 
											(this->vli.vtype == VEH_TRAIN || this->vli.vtype == VEH_ROAD) ? 0 : this->vehicle_sorter_non_ground_veh_disable_mask);
 | 
				
			||||||
				return;
 | 
									return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			case WID_VL_LIST: { // Matrix to show vehicles
 | 
								case WID_VL_LIST: { // Matrix to show vehicles
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -37,6 +37,7 @@ struct BaseVehicleListWindow : public Window {
 | 
				
			|||||||
	static const StringID vehicle_depot_name[];
 | 
						static const StringID vehicle_depot_name[];
 | 
				
			||||||
	static const StringID vehicle_sorter_names[];
 | 
						static const StringID vehicle_sorter_names[];
 | 
				
			||||||
	static GUIVehicleList::SortFunction * const vehicle_sorter_funcs[];
 | 
						static GUIVehicleList::SortFunction * const vehicle_sorter_funcs[];
 | 
				
			||||||
 | 
						const uint vehicle_sorter_non_ground_veh_disable_mask = (1 << 11); // STR_SORT_BY_LENGTH
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	BaseVehicleListWindow(WindowDesc *desc, WindowNumber wno) : Window(desc), vli(wno)
 | 
						BaseVehicleListWindow(WindowDesc *desc, WindowNumber wno) : Window(desc), vli(wno)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user