summaryrefslogtreecommitdiff
path: root/src/smallmap_gui.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-03-28 15:14:25 +0000
committerterkhen <terkhen@openttd.org>2010-03-28 15:14:25 +0000
commitfe0d4253b87c9eed02b13e204de1f9c1b028b660 (patch)
tree7ddc0eacac36e190623ba6269c8008ce0c210973 /src/smallmap_gui.cpp
parent2b812ac2fa71d69adfead6d20c33c439b2c490ff (diff)
downloadopenttd-fe0d4253b87c9eed02b13e204de1f9c1b028b660.tar.xz
(svn r19523) -Fix: Prevent drawing industries disabled at the smallmap as land tiles when they are built on water.
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r--src/smallmap_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp
index 28c56e7c1..dcb4cc1a9 100644
--- a/src/smallmap_gui.cpp
+++ b/src/smallmap_gui.cpp
@@ -393,8 +393,8 @@ static inline uint32 GetSmallMapIndustriesPixels(TileIndex tile, TileType t)
if (_legend_from_industries[_industry_to_list_pos[Industry::GetByTile(tile)->type]].show_on_map) {
return GetIndustrySpec(Industry::GetByTile(tile)->type)->map_colour * 0x01010101;
} else {
- /* Otherwise, return the colour of the clear tiles, which will make it disappear */
- t = MP_CLEAR;
+ /* Otherwise, return the colour which will make it disappear */
+ t = (GetWaterClass(tile) == WATER_CLASS_INVALID) ? MP_CLEAR : MP_WATER;
}
}