From a80a17007ab2dbc731cb906aa9db18f1e4a26431 Mon Sep 17 00:00:00 2001 From: tron Date: Thu, 31 Aug 2006 11:25:00 +0000 Subject: [PATCH] (svn r6266) Replace four shifts by a single multiplication and let the compiler handle what to do with it - it does a better job --- smallmap_gui.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/smallmap_gui.c b/smallmap_gui.c index 0f540e826d..6f9be989f4 100644 --- a/smallmap_gui.c +++ b/smallmap_gui.c @@ -427,8 +427,7 @@ static inline uint32 GetSmallMapIndustriesPixels(TileIndex tile) 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]);