summaryrefslogtreecommitdiff
path: root/src/strings.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-03-28 12:25:09 +0000
committerterkhen <terkhen@openttd.org>2010-03-28 12:25:09 +0000
commit217a98e69b56d74b53d915d15bd73e000005935d (patch)
treec4869b011ba7db7dc8c5a0b68a58f59c4d3cadd5 /src/strings.cpp
parent5193ed0fc1aecf9492a29e6ce87f07ee53d21ab6 (diff)
downloadopenttd-217a98e69b56d74b53d915d15bd73e000005935d.tar.xz
(svn r19521) -Codechange: Use a IndustryType array to sort industries by name instead of a LegendAndColour array.
Diffstat (limited to 'src/strings.cpp')
-rw-r--r--src/strings.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index 77f47843b..2d425834a 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -33,6 +33,8 @@
#include "townname_func.h"
#include "string_func.h"
#include "company_base.h"
+#include "industrytype.h"
+#include "smallmap_gui.h"
#include "table/strings.h"
#include "table/control_codes.h"
@@ -1324,6 +1326,8 @@ bool ReadLanguagePack(int lang_index)
_dynlang.curr = lang_index;
_dynlang.text_dir = (TextDirection)lang_pack->text_dir;
SetCurrentGrfLangID(_langpack->newgrflangid);
+ SortIndustryTypes();
+ BuildIndustriesLegend();
SortNetworkLanguages();
return true;
}