Changeset - r4481:30a71d21e920
[Not reviewed]
master
0 1 0
tron - 18 years ago 2006-08-31 11:25:00
tron@openttd.org
(svn r6266) Replace four shifts by a single multiplication and let the compiler handle what to do with it - it does a better job
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
smallmap_gui.c
Show inline comments
 
@@ -427,8 +427,7 @@ static inline uint32 GetSmallMapIndustri
 
	TileType t = GetEffectiveTileType(tile);
 

	
 
	if (t == MP_INDUSTRY) {
 
		byte color = _industry_smallmap_colors[GetIndustryGfx(tile)];
 
		return color + (color << 8) + (color << 16) + (color << 24);
 
		return _industry_smallmap_colors[GetIndustryGfx(tile)] * 0x01010101;
 
	}
 

	
 
	return ApplyMask(MKCOLOR(0x54545454), &_smallmap_vehicles_andor[t]);
0 comments (0 inline, 0 general)