# HG changeset patch # User frosch # Date 2011-02-05 21:13:54 # Node ID 0faaa93b459452f4e5eb6d9d5701fad9b77e99fb # Parent 104199db2aaba7f4da635b227f969d47015e9882 (svn r21989) -Fix (r21954): Vehicle status bar glitches on speed changes. diff --git a/src/ground_vehicle.hpp b/src/ground_vehicle.hpp --- a/src/ground_vehicle.hpp +++ b/src/ground_vehicle.hpp @@ -340,9 +340,7 @@ struct GroundVehicle : public Specialize FORCEINLINE void SetLastSpeed() { if (this->cur_speed != this->gcache.last_speed) { - if ((this->gcache.last_speed == 0) != (this->cur_speed == 0)) { - SetWindowWidgetDirty(WC_VEHICLE_VIEW, this->index, VVW_WIDGET_START_STOP_VEH); - } + SetWindowWidgetDirty(WC_VEHICLE_VIEW, this->index, VVW_WIDGET_START_STOP_VEH); this->gcache.last_speed = this->cur_speed; } }