diff options
author | frosch <frosch@openttd.org> | 2011-02-05 21:13:54 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-02-05 21:13:54 +0000 |
commit | 9aa185572b09f9be9484d09ec97444094de88a9b (patch) | |
tree | c3d8407cd61541ec55362b6a6b8123f37a27e2e8 /src | |
parent | d82475cf889f6eff52490ef8d612f08574e856db (diff) | |
download | openttd-9aa185572b09f9be9484d09ec97444094de88a9b.tar.xz |
(svn r21989) -Fix (r21954): Vehicle status bar glitches on speed changes.
Diffstat (limited to 'src')
-rw-r--r-- | src/ground_vehicle.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
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<T, Type> { 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; } } |