From 9aa185572b09f9be9484d09ec97444094de88a9b Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 5 Feb 2011 21:13:54 +0000 Subject: (svn r21989) -Fix (r21954): Vehicle status bar glitches on speed changes. --- src/ground_vehicle.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/ground_vehicle.hpp b/src/ground_vehicle.hpp index 6d6932e0d..6beb4e8fd 100644 --- a/src/ground_vehicle.hpp +++ b/src/ground_vehicle.hpp @@ -340,9 +340,7 @@ struct GroundVehicle : public SpecializedVehicle { 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; } } -- cgit v1.2.3-70-g09d2