Changeset - r14915:35dc5367b3b2
[Not reviewed]
master
0 1 0
terkhen - 15 years ago 2010-03-28 15:14:25
terkhen@openttd.org
(svn r19523) -Fix: Prevent drawing industries disabled at the smallmap as land tiles when they are built on water.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/smallmap_gui.cpp
Show inline comments
 
@@ -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;
 
		}
 
	}
 

	
0 comments (0 inline, 0 general)