diff options
author | terkhen <terkhen@openttd.org> | 2010-03-28 12:25:09 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-03-28 12:25:09 +0000 |
commit | 217a98e69b56d74b53d915d15bd73e000005935d (patch) | |
tree | c4869b011ba7db7dc8c5a0b68a58f59c4d3cadd5 /src/industrytype.h | |
parent | 5193ed0fc1aecf9492a29e6ce87f07ee53d21ab6 (diff) | |
download | openttd-217a98e69b56d74b53d915d15bd73e000005935d.tar.xz |
(svn r19521) -Codechange: Use a IndustryType array to sort industries by name instead of a LegendAndColour array.
Diffstat (limited to 'src/industrytype.h')
-rw-r--r-- | src/industrytype.h | 5 |
1 files changed, 5 insertions, 0 deletions
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. |