make ProductionBar actually work for all RA stuff

This commit is contained in:
Chris Forbes
2011-03-02 22:35:44 +13:00
parent c62e025c45
commit 89a96a9fe7
3 changed files with 41 additions and 6 deletions

View File

@@ -53,9 +53,13 @@ namespace OpenRA.Traits
foreach (var extraBar in self.TraitsImplementing<ISelectionBar>())
{
DrawSelectionBar(self, xy, Xy, extraBar.GetValue(), extraBar.GetColor());
xy.Y += 4;
Xy.Y += 4;
var value = extraBar.GetValue();
if (value != 0)
{
xy.Y += 4;
Xy.Y += 4;
DrawSelectionBar(self, xy, Xy, extraBar.GetValue(), extraBar.GetColor());
}
}
}