fix chronoshift being hard to cancel
This commit is contained in:
@@ -89,13 +89,15 @@ namespace OpenRA.Mods.RA
|
|||||||
this.range = (power.Info as ChronoshiftPowerInfo).Range;
|
this.range = (power.Info as ChronoshiftPowerInfo).Range;
|
||||||
tile = UiOverlay.SynthesizeTile(0x04);
|
tile = UiOverlay.SynthesizeTile(0x04);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<Order> Order(World world, int2 xy, MouseInput mi)
|
public IEnumerable<Order> Order(World world, int2 xy, MouseInput mi)
|
||||||
{
|
{
|
||||||
world.CancelInputMode();
|
world.CancelInputMode();
|
||||||
world.OrderGenerator = new SelectDestination(order, manager, power, xy);
|
if (mi.Button == MouseButton.Left)
|
||||||
yield break;
|
world.OrderGenerator = new SelectDestination(order, manager, power, xy);
|
||||||
}
|
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
|
||||||
public void Tick(World world)
|
public void Tick(World world)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user