don't cancel other players' input modes in IonCannon, Airstrike, etc

This commit is contained in:
Chris Forbes
2010-04-10 14:15:04 +12:00
parent 8819d798e5
commit 1e9f5199f8
2 changed files with 7 additions and 2 deletions

View File

@@ -47,6 +47,7 @@ namespace OpenRA.Mods.Cnc
if (order.OrderString == "Airstrike")
{
var startPos = Owner.World.ChooseRandomEdgeCell();
Owner.World.AddFrameEndTask(w =>
{
var a = w.CreateActor("a10", startPos, Owner);
@@ -60,7 +61,9 @@ namespace OpenRA.Mods.Cnc
a.QueueActivity(new RemoveSelf());
});
if (Owner == Owner.World.LocalPlayer)
Game.controller.CancelInputMode();
FinishActivate();
}
}

View File

@@ -45,7 +45,9 @@ namespace OpenRA.Mods.Cnc
w.Add(new IonCannon(self, w, order.TargetLocation));
});
if (Owner == Owner.World.LocalPlayer)
Game.controller.CancelInputMode();
FinishActivate();
}
}