diff options
author | belugas <belugas@openttd.org> | 2007-05-30 01:55:11 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-05-30 01:55:11 +0000 |
commit | f8491407d01175048629a88f7dbd000108a3ed1a (patch) | |
tree | 5fe368163f446abb6118598ad522adbfc688f8f1 /src/smallmap_gui.cpp | |
parent | 7d3d73e104c40fdf0b30cbeda61112ca5797a26c (diff) | |
download | openttd-f8491407d01175048629a88f7dbd000108a3ed1a.tar.xz |
(svn r9983) -Codechange: Use the "enabled" property of the industry spec.
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r-- | src/smallmap_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index e0a13991f..10452b5cf 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -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 |