Fix train speed not being set to 0 for timetabled wait at waypoint orders

This commit is contained in:
Jonathan G Rennison
2021-02-15 21:54:46 +00:00
parent efe382b35a
commit 8fc4f13672

View File

@@ -4362,6 +4362,7 @@ static void TrainEnterStation(Train *v, StationID station)
SetWindowDirty(WC_VEHICLE_VIEW, v->index); SetWindowDirty(WC_VEHICLE_VIEW, v->index);
v->current_order.MakeWaiting(); v->current_order.MakeWaiting();
v->current_order.SetNonStopType(ONSF_NO_STOP_AT_ANY_STATION); v->current_order.SetNonStopType(ONSF_NO_STOP_AT_ANY_STATION);
v->cur_speed = 0;
return; return;
} }