summaryrefslogtreecommitdiff
path: root/src/smallmap_gui.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-05-30 20:20:58 +0000
committerbelugas <belugas@openttd.org>2007-05-30 20:20:58 +0000
commit06bc9866aac08bb5682470d78524234cf1411f48 (patch)
treec886ca4d96352ab20a7685f1637ba209083eb6b6 /src/smallmap_gui.cpp
parent1e371a99d2b24b5c040bc159e42bbfd41e3139ef (diff)
downloadopenttd-06bc9866aac08bb5682470d78524234cf1411f48.tar.xz
(svn r9992) -Codechange: Remove some hardcoded references to Industry IDs.
A few more to go
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 10452b5cf..0c10e7fc5 100644
--- a/src/smallmap_gui.cpp
+++ b/src/smallmap_gui.cpp
@@ -430,7 +430,7 @@ static inline uint32 GetSmallMapVegetationPixels(TileIndex tile)
break;
case MP_INDUSTRY:
- bits = GetIndustryType(tile) == IT_FOREST ? MKCOLOR(0xD0D0D0D0) : MKCOLOR(0xB5B5B5B5);
+ bits = GetIndustrySpec(GetIndustryByTile(tile)->type)->check_proc == CHECK_FOREST ? MKCOLOR(0xD0D0D0D0) : MKCOLOR(0xB5B5B5B5);
break;
case MP_TREES: