Cache ore capacity

This commit is contained in:
Paul Chote
2009-12-21 19:26:22 -08:00
parent 0c79363dcc
commit a754ece459
2 changed files with 9 additions and 10 deletions

View File

@@ -13,8 +13,6 @@ namespace OpenRa.Game.Traits
public IEnumerable<PipType> GetPips()
{
if (self.Info.OrePips == 0) yield break;
for (int i = 0; i < self.Info.OrePips; i++)
{
if (Game.LocalPlayer.GetSiloFullness() > i * 1.0f / self.Info.OrePips)