diff options
author | rubidium <rubidium@openttd.org> | 2010-11-18 22:27:15 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-11-18 22:27:15 +0000 |
commit | ed04bef953da730829770e98fc3a91649eeee23e (patch) | |
tree | 45451a9d1d0685e10c5ea6f0043f331489893416 /src/newgrf_gui.cpp | |
parent | f7b2a87292fdfec4bc695e4d962f9c6e17a14800 (diff) | |
download | openttd-ed04bef953da730829770e98fc3a91649eeee23e.tar.xz |
(svn r21248) -Codechange: don't run the tar scanner twice upon startup
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r-- | src/newgrf_gui.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 6836b13e7..864b2a600 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -24,6 +24,7 @@ #include "querystring_gui.h" #include "core/geometry_func.hpp" #include "newgrf_text.h" +#include "fileio_func.h" #include "table/strings.h" #include "table/sprites.h" @@ -977,6 +978,7 @@ struct NewGRFWindow : public QueryStringBaseWindow { case SNGRFS_RESCAN_FILES: case SNGRFS_RESCAN_FILES2: + TarScanner::DoScan(); ScanNewGRFFiles(); this->avail_sel = NULL; this->avail_pos = -1; |