offer Move on bridges

This commit is contained in:
Chris Forbes
2010-01-19 15:36:36 +13:00
parent e627c420d4
commit 8994671352

View File

@@ -54,8 +54,11 @@ namespace OpenRa.Traits
public Order IssueOrder(Actor self, int2 xy, MouseInput mi, Actor underCursor)
{
if (mi.Button == MouseButton.Left) return null;
// force-fire should *always* take precedence over move.
if (mi.Modifiers.HasModifier(Modifiers.Ctrl)) return null;
if (underCursor != null)
if (underCursor != null && underCursor.Owner != null)
{
// force-move
if (!mi.Modifiers.HasModifier(Modifiers.Alt)) return null;