From 914245292206fec5d90dbbc366ee4a9138a0fa37 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Tue, 20 Sep 2016 18:11:25 +0200 Subject: [PATCH] Fix beacons not being cancelable --- OpenRA.Mods.Common/Orders/BeaconOrderGenerator.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Orders/BeaconOrderGenerator.cs b/OpenRA.Mods.Common/Orders/BeaconOrderGenerator.cs index d5776f95bc..3042bf463d 100644 --- a/OpenRA.Mods.Common/Orders/BeaconOrderGenerator.cs +++ b/OpenRA.Mods.Common/Orders/BeaconOrderGenerator.cs @@ -19,7 +19,9 @@ namespace OpenRA.Mods.Common.Orders public IEnumerable Order(World world, CPos cell, int2 worldPixel, MouseInput mi) { world.CancelInputMode(); - yield return new Order("PlaceBeacon", world.LocalPlayer.PlayerActor, false) { TargetLocation = cell, SuppressVisualFeedback = true }; + + if (mi.Button == MouseButton.Left) + yield return new Order("PlaceBeacon", world.LocalPlayer.PlayerActor, false) { TargetLocation = cell, SuppressVisualFeedback = true }; } public virtual void Tick(World world) { }