Reset vehicle lateness when auto-timetable jam detected

This commit is contained in:
Jonathan G Rennison
2020-07-06 17:27:15 +01:00
parent caa0f6a044
commit cd89b246a7

View File

@@ -920,6 +920,7 @@ void UpdateVehicleTimetable(Vehicle *v, bool travelling)
for (Vehicle *v2 = v->FirstShared(); v2 != nullptr; v2 = v2->NextShared()) { for (Vehicle *v2 = v->FirstShared(); v2 != nullptr; v2 = v2->NextShared()) {
v2->ClearSeparation(); v2->ClearSeparation();
ClrBit(v2->vehicle_flags, VF_TIMETABLE_STARTED); ClrBit(v2->vehicle_flags, VF_TIMETABLE_STARTED);
v2->lateness_counter = 0;
SetWindowDirty(WC_VEHICLE_TIMETABLE, v2->index); SetWindowDirty(WC_VEHICLE_TIMETABLE, v2->index);
} }
return; return;