This commit is contained in:
Paul Chote
2010-09-01 20:25:43 +12:00
parent 7f918b8a69
commit 07e60286f2

View File

@@ -98,14 +98,11 @@ namespace OpenRA.Traits
// Pick a spawn/exit point pair // Pick a spawn/exit point pair
// Todo: Reorder in a synced random way // Todo: Reorder in a synced random way
foreach (var s in self.Info.Traits.WithInterface<ExitInfo>()) foreach (var s in self.Info.Traits.WithInterface<ExitInfo>())
{
System.Console.WriteLine("here");
if (mobile.CanEnterCell(self.Location + s.ExitCell,self,true)) if (mobile.CanEnterCell(self.Location + s.ExitCell,self,true))
{ {
DoProduction(self, newUnit, s); DoProduction(self, newUnit, s);
return true; return true;
} }
}
return false; return false;
} }