summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-08-24 16:38:09 +0000
committerrubidium <rubidium@openttd.org>2011-08-24 16:38:09 +0000
commitf5dd74499bac7fc9a2cbc5abdc6527536fe303a1 (patch)
treef0c88597fcaebeaf4502025359bf0f47600318a0 /src/ai
parent49d8852f3f016f385ee3fabc5b5a714c70b5b2c8 (diff)
downloadopenttd-f5dd74499bac7fc9a2cbc5abdc6527536fe303a1.tar.xz
(svn r22829) -Codechange: unify the dirtying of windows after an AI scan
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_core.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ai/ai_core.cpp b/src/ai/ai_core.cpp
index f92d511c2..b98c88c30 100644
--- a/src/ai/ai_core.cpp
+++ b/src/ai/ai_core.cpp
@@ -334,4 +334,8 @@ void CcAI(const CommandCost &result, TileIndex tile, uint32 p1, uint32 p2)
{
AI::ai_scanner->RescanAIDir();
ResetConfig();
+
+ InvalidateWindowData(WC_AI_LIST, 0, 1);
+ SetWindowClassesDirty(WC_AI_DEBUG);
+ SetWindowDirty(WC_AI_SETTINGS, 0);
}