summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-02-04 20:29:38 +0000
committerrubidium <rubidium@openttd.org>2013-02-04 20:29:38 +0000
commit99a08e1e8cec3d73bf802e64b9e460e71f47cb43 (patch)
treebe103dfa43a828c12444678bce7fe67c679b372f /src/settings.cpp
parent26adb854e05d781f05f29c4584c5c58d92461cce (diff)
downloadopenttd-99a08e1e8cec3d73bf802e64b9e460e71f47cb43.tar.xz
(svn r24968) -Fix [FS#5379]: company window was not updated when shared were enabled/disabled
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index c871688d3..9ca7cb094 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -1038,6 +1038,17 @@ static bool InvalidateCompanyInfrastructureWindow(int32 p1)
return true;
}
+/**
+ * Invalidate the company details window after the shares setting changed.
+ * @param p1 Unused.
+ * @return Always true.
+ */
+static bool InvalidateCompanyWindow(int32 p1)
+{
+ InvalidateWindowClassesData(WC_COMPANY);
+ return true;
+}
+
/** Checks if any settings are set to incorrect values, and sets them to correct values in that case. */
static void ValidateSettings()
{