# HG changeset patch # User Mike # Date 2021-03-30 17:42:12 # Node ID 381d0d107dda98da796e894fb8040945878f856b # Parent 91307ec890854d1e8d155c8b751315a77c4590cc Fix #8565: Stopped road vehicle displays a speed different than 0 (#8901) diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -1571,7 +1571,10 @@ static bool RoadVehController(RoadVehicl /* 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();