summaryrefslogtreecommitdiff
path: root/src/smallmap_gui.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-05-30 01:55:11 +0000
committerbelugas <belugas@openttd.org>2007-05-30 01:55:11 +0000
commit0a3ebbbc224b0f8af0b8ee89db8a80fe68bee5d4 (patch)
tree5fe368163f446abb6118598ad522adbfc688f8f1 /src/smallmap_gui.cpp
parenteecf582cc4e2883573eafefeb81a3fce03b4c624 (diff)
downloadopenttd-0a3ebbbc224b0f8af0b8ee89db8a80fe68bee5d4.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.cpp2
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