squash warning

This commit is contained in:
Chris Forbes
2010-07-26 17:40:36 +12:00
parent 102f1dd858
commit e30e97037f

View File

@@ -28,19 +28,19 @@ namespace OpenRA.Mods.RA
// Disable cargo support until someone fixes it // Disable cargo support until someone fixes it
return null; return null;
if (mi.Button != MouseButton.Right) //if (mi.Button != MouseButton.Right)
return null; // return null;
if (underCursor == null || underCursor.Owner != self.Owner) //if (underCursor == null || underCursor.Owner != self.Owner)
return null; // return null;
var cargo = underCursor.traits.GetOrDefault<Cargo>(); //var cargo = underCursor.traits.GetOrDefault<Cargo>();
if (cargo == null) //if (cargo == null)
return null; // return null;
// Todo: Check if we can enter the transport //// Todo: Check if we can enter the transport
return new Order("EnterTransport", self, underCursor); //return new Order("EnterTransport", self, underCursor);
} }
bool CanEnter(Actor self, Actor a) bool CanEnter(Actor self, Actor a)