don't cancel other players' input modes in IonCannon, Airstrike, etc
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user