summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2011-11-08 21:48:00 +0000
committeryexo <yexo@openttd.org>2011-11-08 21:48:00 +0000
commita256bd71e472fb6bd6ad91f464ee1d1a18a1823f (patch)
treeef338211b627ae164a9dd5bb705cf509123aaf88 /src/settings.cpp
parent5c838ff1c312c240e44bb7da95e5450bcfeaeff6 (diff)
downloadopenttd-a256bd71e472fb6bd6ad91f464ee1d1a18a1823f.tar.xz
(svn r23169) -Feature: [NoAI] AICONFIG_AI_DEVELOPER flags to hide AI settings unless gui.ai_developer_tools is enabled (Zuu)
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index a688fc5aa..cd6003cdc 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -920,6 +920,12 @@ static bool InvalidateIndustryViewWindow(int32 p1)
return true;
}
+static bool InvalidateAISettingsWindow(int32 p1)
+{
+ InvalidateWindowClassesData(WC_AI_SETTINGS);
+ return true;
+}
+
/**
* Update the town authority window after a town authority setting change.
* @param p1 Unused.