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
commit0f6e6d97130e955f4c4764edcfd03fbd999fb659 (patch)
treec886ca4d96352ab20a7685f1637ba209083eb6b6 /src/smallmap_gui.cpp
parent2db0d81cc15dd887b32e6d85d6fb5022300c0c1b (diff)
downloadopenttd-0f6e6d97130e955f4c4764edcfd03fbd999fb659.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: