From 217a98e69b56d74b53d915d15bd73e000005935d Mon Sep 17 00:00:00 2001 From: terkhen Date: Sun, 28 Mar 2010 12:25:09 +0000 Subject: (svn r19521) -Codechange: Use a IndustryType array to sort industries by name instead of a LegendAndColour array. --- src/industrytype.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/industrytype.h') diff --git a/src/industrytype.h b/src/industrytype.h index b4d653c53..e41b0ed8e 100644 --- a/src/industrytype.h +++ b/src/industrytype.h @@ -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. -- cgit v1.2.3-54-g00ecf