1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-20 21:19:10 +00:00

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

This commit is contained in:
Mike
2021-03-30 13:42:12 -04:00
committed by Patric Stout
parent b8af503ff5
commit b36b1a8cf9

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