Fix VRF_BEYOND_PLATFORM_END not being cleared when switching order

This commit is contained in:
Jonathan G Rennison
2022-01-03 12:47:44 +00:00
parent e993afcd99
commit 30817c3915
4 changed files with 21 additions and 0 deletions

View File

@@ -6590,6 +6590,10 @@ static void CheckIfTrainNeedsService(Train *v)
v->current_order.MakeGoToDepot(depot, ODTFB_SERVICE);
v->dest_tile = tfdd.tile;
SetWindowWidgetDirty(WC_VEHICLE_VIEW, v->index, WID_VV_START_STOP);
for (Train *u = v; u != nullptr; u = u->Next()) {
ClrBit(u->flags, VRF_BEYOND_PLATFORM_END);
}
}
/** Update day counters of the train vehicle. */