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

@@ -109,7 +109,11 @@ namespace OpenRA.Traits
foreach (var pips in self.TraitsImplementing<IPips>())
{
foreach (var pip in pips.GetPips(self))
var thisRow = pips.GetPips(self);
if (thisRow == null)
continue;
foreach (var pip in thisRow)
{
if (pipxyOffset.X+5 > self.GetBounds(false).Width)
{