(svn r9983) -Codechange: Use the "enabled" property of the industry spec.

This commit is contained in:
belugas
2007-05-30 01:55:11 +00:00
parent 7d3d73e104
commit f8491407d0
2 changed files with 20 additions and 15 deletions

View File

@@ -146,7 +146,7 @@ void BuildIndustriesLegend()
/* Add each name */
for (IndustryType i = 0; i < NUM_INDUSTRYTYPES; i++) {
indsp = GetIndustrySpec(i);
if (HASBIT(indsp->climate_availability, _opt.landscape)) {
if (indsp->enabled) {
_legend_from_industries[j].legend = indsp->name;
_legend_from_industries[j].colour = indsp->map_colour;
_legend_from_industries[j].col_break = (j % 6) == 0; // break is performed on the 7th item