From 67bdf0ce30fb7f56434e7bda354f7975432dcd93 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Mon, 21 Dec 2009 19:28:10 +1300 Subject: [PATCH] don't land on other people's AFLDs --- OpenRa.Game/Traits/Plane.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRa.Game/Traits/Plane.cs b/OpenRa.Game/Traits/Plane.cs index 163e8fea9c..5643e4e449 100644 --- a/OpenRa.Game/Traits/Plane.cs +++ b/OpenRa.Game/Traits/Plane.cs @@ -17,7 +17,8 @@ namespace OpenRa.Game.Traits if (mi.Button == MouseButton.Left) return null; if (underCursor == null) return Order.Move(self, xy); - if (underCursor.Info == Rules.UnitInfo["AFLD"]) + if (underCursor.Info == Rules.UnitInfo["AFLD"] + && underCursor.Owner == self.Owner) return Order.DeliverOre(self, underCursor); /* brutal hack */ return null; }