diff options
author | tron <tron@openttd.org> | 2006-08-31 11:25:00 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-08-31 11:25:00 +0000 |
commit | 48258d844f47f3e138e2bbe55b60a389d7e5d0a9 (patch) | |
tree | 5c6290809b9bc70119e78d4a607bd95f7ce612e6 | |
parent | 1bb62bdef7c5c17f8b104a5a1e6ad09b3f060864 (diff) | |
download | openttd-48258d844f47f3e138e2bbe55b60a389d7e5d0a9.tar.xz |
(svn r6266) Replace four shifts by a single multiplication and let the compiler handle what to do with it - it does a better job
-rw-r--r-- | smallmap_gui.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/smallmap_gui.c b/smallmap_gui.c index 0f540e826..6f9be989f 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]); |