mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 18:40:29 +00:00
(svn r21523) -Fix: Some windows were not updated correctly after a train acceleration model change.
This commit is contained in:
parent
832625bb0e
commit
fc42e98226
@ -809,6 +809,11 @@ static bool TrainAccelerationModelChanged(int32 p1)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* These windows show acceleration values only when realistic acceleration is on. They must be redrawn after a setting change. */
|
||||||
|
SetWindowClassesDirty(WC_ENGINE_PREVIEW);
|
||||||
|
InvalidateWindowClassesData(WC_BUILD_VEHICLE, 0);
|
||||||
|
SetWindowClassesDirty(WC_VEHICLE_DETAILS);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user