(svn r22829) -Codechange: unify the dirtying of windows after an AI scan

This commit is contained in:
rubidium
2011-08-24 16:38:09 +00:00
parent 49d8852f3f
commit f5dd74499b
3 changed files with 4 additions and 4 deletions

View File

@@ -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);
}