mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-06 03:20:28 +00:00
(svn r21989) -Fix (r21954): Vehicle status bar glitches on speed changes.
This commit is contained in:
parent
7a5d9299ff
commit
0b816dd007
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user