mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r22829) -Codechange: unify the dirtying of windows after an AI scan
This commit is contained in:
parent
49d8852f3f
commit
f5dd74499b
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -1253,8 +1253,6 @@ DEF_CONSOLE_CMD(ConRescanAI)
|
|||
|
||||
TarScanner::DoScan();
|
||||
AI::Rescan();
|
||||
InvalidateWindowData(WC_AI_LIST, 0, 1);
|
||||
SetWindowDirty(WC_AI_SETTINGS, 0);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -94,8 +94,6 @@ public:
|
|||
case CONTENT_TYPE_AI:
|
||||
case CONTENT_TYPE_AI_LIBRARY:
|
||||
AI::Rescan();
|
||||
SetWindowClassesDirty(WC_AI_DEBUG);
|
||||
InvalidateWindowData(WC_AI_LIST, 0, 1);
|
||||
break;
|
||||
|
||||
case CONTENT_TYPE_BASE_GRAPHICS:
|
||||
|
|
Loading…
Reference in New Issue