Changeset - r17371:583dcebbf4f4
[Not reviewed]
master
0 1 0
terkhen - 14 years ago 2011-02-22 14:23:38
terkhen@openttd.org
(svn r22127) -Fix: Canals would get drawn as land in the smallmap when using the owner window.
1 file changed with 2 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/smallmap_gui.cpp
Show inline comments
 
@@ -542,11 +542,10 @@ static inline uint32 GetSmallMapOwnerPix
 
		 */
 
	}
 

	
 
	if ((o < MAX_COMPANIES && !_legend_land_owners[_company_to_list_pos[o]].show_on_map) || o == OWNER_NONE) {
 
	if ((o < MAX_COMPANIES && !_legend_land_owners[_company_to_list_pos[o]].show_on_map) || o == OWNER_NONE || o == OWNER_WATER) {
 
		if (t == MP_WATER) return MKCOLOUR(0xCACACACA);
 
		const SmallMapColourScheme *cs = &_heightmap_schemes[_settings_client.gui.smallmap_land_colour];
 
		return _smallmap_show_heightmap ? cs->height_colours[TileHeight(tile)] : cs->default_colour;
 
	} else if (o == OWNER_WATER) {
 
		return MKCOLOUR(0xCACACACA);
 
	} else if (o == OWNER_TOWN) {
 
		return MKCOLOUR(0xB4B4B4B4);
 
	}
0 comments (0 inline, 0 general)