# HG changeset patch # User tron # Date 1157023500 0 # Node ID aa3dd55ea06dc71b3cbdb0a27417e87b22d07857 # Parent 2dfb09aaa11cf46c5ea83c0a94b72f04a40d1d75 (svn r6266) Replace four shifts by a single multiplication and let the compiler handle what to do with it - it does a better job diff -r 2dfb09aaa11c -r aa3dd55ea06d smallmap_gui.c --- a/smallmap_gui.c Thu Aug 31 11:18:30 2006 +0000 +++ b/smallmap_gui.c Thu Aug 31 11:25:00 2006 +0000 @@ -427,8 +427,7 @@ 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]);