diff options
author | terkhen <terkhen@openttd.org> | 2010-12-15 09:01:04 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-12-15 09:01:04 +0000 |
commit | fc42e98226f37b1b32bd9b34ca6fc7d06c9f0c27 (patch) | |
tree | 1dcc8edd66bad01a1740cda92c985b49149dc674 /src | |
parent | 832625bb0ed87ccc73ca408585a986e85a61dea6 (diff) | |
download | openttd-fc42e98226f37b1b32bd9b34ca6fc7d06c9f0c27.tar.xz |
(svn r21523) -Fix: Some windows were not updated correctly after a train acceleration model change.
Diffstat (limited to 'src')
-rw-r--r-- | src/settings.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 1834fe72d..964631f5d 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -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; } |