Repair-by-conyard moved into a user setting (disabled by default)

This commit is contained in:
Paul Chote
2010-01-03 12:55:37 +13:00
parent 109a1253b2
commit 50cc9175bf
4 changed files with 44 additions and 27 deletions

View File

@@ -36,11 +36,14 @@ namespace OpenRa.Game.Orders
public void Tick()
{
var hasFact = Game.world.Actors
.Any(a => a.Owner == Game.LocalPlayer && a.traits.Contains<ConstructionYard>());
if (!hasFact)
Game.controller.CancelInputMode();
if (Game.Settings.RepairRequiresConyard)
{
var hasFact = Game.world.Actors
.Any(a => a.Owner == Game.LocalPlayer && a.traits.Contains<ConstructionYard>());
if (!hasFact)
Game.controller.CancelInputMode();
}
}