(svn r21248) -Codechange: don't run the tar scanner twice upon startup

This commit is contained in:
rubidium
2010-11-18 22:27:15 +00:00
parent f7b2a87292
commit ed04bef953
5 changed files with 8 additions and 1 deletions

View File

@@ -1157,6 +1157,7 @@ DEF_CONSOLE_CMD(ConRescanAI)
return true;
}
TarScanner::DoScan();
AI::Rescan();
InvalidateWindowData(WC_AI_LIST, 0, 1);
@@ -1171,6 +1172,7 @@ DEF_CONSOLE_CMD(ConRescanNewGRF)
return true;
}
TarScanner::DoScan();
ScanNewGRFFiles();
InvalidateWindowData(WC_GAME_OPTIONS, 0, 1);