summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2011-02-05 13:42:57 +0000
committerterkhen <terkhen@openttd.org>2011-02-05 13:42:57 +0000
commit91dcc9e0164987f6b17ed3a28e8ee2b497133c84 (patch)
tree6a09a2ccebf66481514a0761c8a320649bab36cd /src/settings.cpp
parent7935eab3dc50cbe63fd78f36294a305032ba47f8 (diff)
downloadopenttd-91dcc9e0164987f6b17ed3a28e8ee2b497133c84.tar.xz
(svn r21973) -Fix: Redraw the town authority window after modifying town authority settings.
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 aed2e9206..5d4e713be 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -921,6 +921,17 @@ static bool InvalidateIndustryViewWindow(int32 p1)
return true;
}
+/**
+ * Update the town authority window after a town authority setting change.
+ * @param p1 Unused.
+ * @return Always true.
+ */
+static bool RedrawTownAuthority(int32 p1)
+{
+ SetWindowClassesDirty(WC_TOWN_AUTHORITY);
+ return true;
+}
+
/*
* A: competitors
* B: competitor start time. Deprecated since savegame version 110.