mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-31 02:19:09 +00:00
(svn r22829) -Codechange: unify the dirtying of windows after an AI scan
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user