(svn r19307) -Add: Let railtypes specify their own smallmap colour. No legend support yet.

This commit is contained in:
peter1138
2010-03-03 19:07:34 +00:00
parent c3d3e7d383
commit 1025d003b3
4 changed files with 30 additions and 0 deletions

View File

@@ -419,6 +419,14 @@ static inline uint32 GetSmallMapRoutesPixels(TileIndex tile, TileType t)
case STATION_DOCK: return MKCOLOUR(0x98989898);
default: return MKCOLOUR(0xFFFFFFFF);
}
} else if (t == MP_RAILWAY) {
AndOr andor = {
GetRailTypeInfo(GetRailType(tile))->map_colour * MKCOLOUR(0x00010100),
_smallmap_contours_andor[t].mand
};
const SmallMapColourScheme *cs = &_heightmap_schemes[_settings_client.gui.smallmap_land_colour];
return ApplyMask(cs->default_colour, &andor);
}
/* Ground colour */