| 2287 | } |
| 2288 | |
| 2289 | void ShowVehicleListWindow(CompanyID company, VehicleType vehicle_type) |
| 2290 | { |
| 2291 | /* If _settings_client.gui.advanced_vehicle_list > 1, display the Advanced list |
| 2292 | * if _settings_client.gui.advanced_vehicle_list == 1, display Advanced list only for local company |
| 2293 | * if _ctrl_pressed, do the opposite action (Advanced list x Normal list) |
| 2294 | */ |
| 2295 | |
| 2296 | if ((_settings_client.gui.advanced_vehicle_list > (uint)(company != _local_company)) != _ctrl_pressed) { |
| 2297 | ShowCompanyGroup(company, vehicle_type); |
| 2298 | } else { |
| 2299 | ShowVehicleListWindowLocal(company, VL_STANDARD, vehicle_type, company.base()); |
| 2300 | } |
| 2301 | } |
| 2302 | |
| 2303 | void ShowVehicleListWindow(const Vehicle *v) |
| 2304 | { |
no test coverage detected