fix selection of phantom units, etc

This commit is contained in:
Chris Forbes
2009-10-10 21:30:47 +13:00
parent 70bc8366a5
commit 0f94af763a
5 changed files with 7 additions and 13 deletions

View File

@@ -94,17 +94,10 @@ namespace OpenRa.TechTree
void CheckAll()
{
bool changed = false;
foreach (Item unit in objects.Values)
{
bool old = unit.CanBuild;
unit.CheckPrerequisites(built, currentRace);
if (old != unit.CanBuild)
changed = true;
}
//if (changed)
BuildableItemsChanged();
BuildableItemsChanged();
}
public IEnumerable<Item> BuildableItems