From 68dcec87c78eafc817e9a11039f96a2a8f8d64f6 Mon Sep 17 00:00:00 2001 From: Bob Date: Thu, 9 Sep 2010 17:17:36 +1200 Subject: [PATCH] right-clicking a passenger with a transport loads cargo --- OpenRA.Mods.RA/Cargo.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/OpenRA.Mods.RA/Cargo.cs b/OpenRA.Mods.RA/Cargo.cs index bc64498ef2..6f3d04ad80 100644 --- a/OpenRA.Mods.RA/Cargo.cs +++ b/OpenRA.Mods.RA/Cargo.cs @@ -28,12 +28,15 @@ namespace OpenRA.Mods.RA public Order IssueOrder(Actor self, int2 xy, MouseInput mi, Actor underCursor) { - if (mi.Button != MouseButton.Right || underCursor != self) - return null; - - return new Order("Unload", self); + if (mi.Button == MouseButton.Right && underCursor == self) + return new Order("Unload", self); + + if( mi.Button == MouseButton.Right && underCursor != null && underCursor.Owner == self.Owner ) + return new Order("EnterTransport", underCursor, self); + + return null; } - + public void ResolveOrder(Actor self, Order order) { if (order.OrderString == "Unload")