diff options
author | frosch <frosch@openttd.org> | 2015-02-22 15:26:27 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2015-02-22 15:26:27 +0000 |
commit | c639fb0d8eb0371a95c39027a986636f1ca8f764 (patch) | |
tree | 65de5e1182f4e5f05a6bd7394e4b71a57a783a32 /src/settings.cpp | |
parent | f26e9bf59dd953ab76bf816ba7aad87638c22c21 (diff) | |
download | openttd-c639fb0d8eb0371a95c39027a986636f1ca8f764.tar.xz |
(svn r27163) -Fix [FS#6204]: Toolbars were not invalidated when changing max-vehicles settings. (adf88)
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 9dc08ecc1..ecad0239c 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1304,6 +1304,13 @@ static bool StationCatchmentChanged(int32 p1) return true; } +static bool MaxVehiclesChanged(int32 p1) +{ + InvalidateWindowClassesData(WC_BUILD_TOOLBAR); + MarkWholeScreenDirty(); + return true; +} + #ifdef ENABLE_NETWORK |