Ore pips on refinery and silo

This commit is contained in:
Paul Chote
2009-12-21 19:13:54 -08:00
parent f20ecc8a5d
commit 0c79363dcc
5 changed files with 37 additions and 3 deletions

View File

@@ -76,7 +76,7 @@ namespace OpenRa.Game
public int GetOreCapacity()
{
return Game.world.Actors
.Where(a => a.Owner == this)
.Where(a => a.Owner == this && a.traits.Contains<StoresOre>())
.Select(a => a.Info as BuildingInfo)
.Where(b => b != null)
.Sum(b => b.Storage);