don't land on other people's AFLDs

This commit is contained in:
Chris Forbes
2009-12-21 19:28:10 +13:00
parent 98804390cf
commit 67bdf0ce30

View File

@@ -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;
}