1
0
Fork 0

Fix #8565: Stopped road vehicle displays a speed different than 0 (#8901)

pull/8918/head
Mike 2021-03-30 13:42:12 -04:00 committed by Patric Stout
parent b8af503ff5
commit b36b1a8cf9
1 changed files with 4 additions and 1 deletions

View File

@ -1571,7 +1571,10 @@ static bool RoadVehController(RoadVehicle *v)
/* road vehicle has broken down? */
if (v->HandleBreakdown()) return true;
if (v->vehstatus & VS_STOPPED) return true;
if (v->vehstatus & VS_STOPPED) {
v->SetLastSpeed();
return true;
}
ProcessOrders(v);
v->HandleLoading();