unhacking IChromeButton.

This commit is contained in:
alzeih
2010-07-20 22:05:23 +12:00
parent 846971836a
commit 795da1b088
14 changed files with 176 additions and 155 deletions

View File

@@ -48,9 +48,6 @@ namespace OpenRA.Mods.RA.Orders
public static bool PlayerIsAllowedToRepair( World world )
{
if( !world.WorldActor.Info.Traits.Get<RepairButtonInfo>().RequiresConstructionYard )
return true;
return Game.world.Queries.OwnedBy[ Game.world.LocalPlayer ]
.WithTrait<Production>().Where( x => x.Actor.Info.Traits.Get<ProductionInfo>().Produces.Contains( "Building" ) )
.Any();