fix dodgy targeting of FIX

This commit is contained in:
Chris Forbes
2010-09-07 19:23:13 +12:00
parent 76bf3077e9
commit cdec95b73a

View File

@@ -35,6 +35,7 @@ namespace OpenRA.Mods.RA
{
if (mi.Button != MouseButton.Right) return null;
if (underCursor == null) return null;
if (mi.Modifiers.HasModifier(Modifiers.Ctrl)) return null; // force-fire, so don't do this.
if (self.Info.Traits.Get<RepairableInfo>().RepairBuildings.Contains(underCursor.Info.Name)
&& underCursor.Owner == self.Owner)