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

pull/239/head
Mike 3 years ago committed by GitHub
parent e23ccc95f5
commit 49c89cb5f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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();

Loading…
Cancel
Save