Departure board: Skip vehicles with no orders

This commit is contained in:
Jonathan G Rennison
2020-07-19 12:21:34 +01:00
parent c35f620746
commit c0e267973f

View File

@@ -236,6 +236,7 @@ DepartureList* MakeDepartureList(StationID station, const std::vector<const Vehi
/* Get the first order for each vehicle for the station we're interested in that doesn't have No Loading set. */ /* Get the first order for each vehicle for the station we're interested in that doesn't have No Loading set. */
/* We find the least order while we're at it. */ /* We find the least order while we're at it. */
for (const Vehicle *v : vehicles) { for (const Vehicle *v : vehicles) {
if (v->GetNumOrders() == 0) continue;
if (show_pax != show_freight) { if (show_pax != show_freight) {
bool carries_passengers = false; bool carries_passengers = false;