polish multiple rows of pips (RA proc)

This commit is contained in:
Chris Forbes
2010-09-07 19:09:18 +12:00
parent fee6d450e4
commit be46f44bc9
2 changed files with 6 additions and 2 deletions

View File

@@ -125,7 +125,7 @@ namespace OpenRA.Mods.RA
public IEnumerable<PipType> GetPips (Actor self)
{
if (!Info.LocalStorage)
return new PipType[] { };
return null;
return Graphics.Util.MakeArray (Info.PipCount, i => (Ore * 1f / Info.Capacity > i * 1f / Info.PipCount) ? Info.PipColor : PipType.Transparent);
}