# HG changeset patch # User terkhen # Date 2010-03-28 15:14:25 # Node ID 35dc5367b3b2d7ec5ecefc25a139c47e33094797 # Parent 6daaca116c6dd7b08561a51c972358eb06f3b2a4 (svn r19523) -Fix: Prevent drawing industries disabled at the smallmap as land tiles when they are built on water. diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -393,8 +393,8 @@ static inline uint32 GetSmallMapIndustri 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; } }