mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r6266) Replace four shifts by a single multiplication and let the compiler handle what to do with it - it does a better job
This commit is contained in:
parent
1bb62bdef7
commit
48258d844f
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user