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")
|
if (order.OrderString == "Airstrike")
|
||||||
{
|
{
|
||||||
var startPos = Owner.World.ChooseRandomEdgeCell();
|
var startPos = Owner.World.ChooseRandomEdgeCell();
|
||||||
|
|
||||||
Owner.World.AddFrameEndTask(w =>
|
Owner.World.AddFrameEndTask(w =>
|
||||||
{
|
{
|
||||||
var a = w.CreateActor("a10", startPos, Owner);
|
var a = w.CreateActor("a10", startPos, Owner);
|
||||||
@@ -60,7 +61,9 @@ namespace OpenRA.Mods.Cnc
|
|||||||
a.QueueActivity(new RemoveSelf());
|
a.QueueActivity(new RemoveSelf());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (Owner == Owner.World.LocalPlayer)
|
||||||
Game.controller.CancelInputMode();
|
Game.controller.CancelInputMode();
|
||||||
|
|
||||||
FinishActivate();
|
FinishActivate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,7 +45,9 @@ namespace OpenRA.Mods.Cnc
|
|||||||
w.Add(new IonCannon(self, w, order.TargetLocation));
|
w.Add(new IonCannon(self, w, order.TargetLocation));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (Owner == Owner.World.LocalPlayer)
|
||||||
Game.controller.CancelInputMode();
|
Game.controller.CancelInputMode();
|
||||||
|
|
||||||
FinishActivate();
|
FinishActivate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user