Fix regressions.

This commit is contained in:
Paul Chote
2010-05-23 19:52:05 +12:00
parent d9931af5ae
commit bbbd65a6eb
3 changed files with 9 additions and 10 deletions

View File

@@ -26,9 +26,6 @@ namespace OpenRA.Traits
public void Tick( Player owner, Cache<string, List<Actor>> buildings )
{
// HACK
return;
var effectivePrereq = prerequisites.Where( a => a.Traits.Get<BuildableInfo>().Owner.Contains( owner.Country.Race ) );
var nowHasPrerequisites = effectivePrereq.Any() &&
effectivePrereq.All( a => buildings[ a.Name ].Any( b => !b.traits.Get<Building>().Disabled ) );