move CYard trait and UndeployMCV activity into mod

This commit is contained in:
Bob
2010-07-08 15:34:21 +12:00
parent 1eedae2c7b
commit 7a738ed6af
9 changed files with 53 additions and 34 deletions

View File

@@ -46,9 +46,8 @@ namespace OpenRA.Mods.RA
{
get
{
return !info.RequiresConstructionYard ||
Game.world.Queries.OwnedBy[Game.world.LocalPlayer]
.WithTrait<ConstructionYard>().Any();
// WTF: why are these buttons even traits?
return RepairOrderGenerator.PlayerIsAllowedToRepair( Game.world );
}
}