Mercurial > hg > openttd
changeset 14925:2a9dfe911fa1 draft
(svn r19523) -Fix: Prevent drawing industries disabled at the smallmap as land tiles when they are built on water.
author | terkhen <terkhen@openttd.org> |
---|---|
date | Sun, 28 Mar 2010 15:14:25 +0000 |
parents | be39dea79df3 |
children | 58f784c2e555 |
files | src/smallmap_gui.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -393,8 +393,8 @@ 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; } }