(svn r19521) -Codechange: Use a IndustryType array to sort industries by name instead of a LegendAndColour array.

This commit is contained in:
terkhen
2010-03-28 12:25:09 +00:00
parent 5193ed0fc1
commit 217a98e69b
5 changed files with 52 additions and 32 deletions

View File

@@ -183,6 +183,11 @@ void ResetIndustries();
extern IndustrySpec _industry_specs[NUM_INDUSTRYTYPES];
extern IndustryTileSpec _industry_tile_specs[NUM_INDUSTRYTILES];
/* industry_gui.cpp */
void SortIndustryTypes();
/* Industry types sorted alphabetically by name. */
extern IndustryType _sorted_industry_types[NUM_INDUSTRYTYPES];
/**
* Do industry gfx ID translation for NewGRFs.
* @param gfx the type to get the override for.