summaryrefslogtreecommitdiff
path: root/src/console_cmds.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-11-18 22:27:15 +0000
committerrubidium <rubidium@openttd.org>2010-11-18 22:27:15 +0000
commited04bef953da730829770e98fc3a91649eeee23e (patch)
tree45451a9d1d0685e10c5ea6f0043f331489893416 /src/console_cmds.cpp
parentf7b2a87292fdfec4bc695e4d962f9c6e17a14800 (diff)
downloadopenttd-ed04bef953da730829770e98fc3a91649eeee23e.tar.xz
(svn r21248) -Codechange: don't run the tar scanner twice upon startup
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r--src/console_cmds.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index f29e315e0..56cc88edf 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -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);