Changeset - r17239:0faaa93b4594
[Not reviewed]
master
0 1 0
frosch - 13 years ago 2011-02-05 21:13:54
frosch@openttd.org
(svn r21989) -Fix (r21954): Vehicle status bar glitches on speed changes.
1 file changed with 1 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/ground_vehicle.hpp
Show inline comments
 
@@ -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;
 
		}
 
	}
0 comments (0 inline, 0 general)