Begin imposing sanity on order ordering

This commit is contained in:
Paul Chote
2010-09-12 18:10:34 +12:00
parent 1bc2136771
commit 2b6328f0ee
21 changed files with 108 additions and 14 deletions

View File

@@ -46,6 +46,12 @@ namespace OpenRA.Mods.RA
}
}
public int OrderPriority(Actor self, int2 xy, MouseInput mi, Actor underCursor)
{
// Force move takes precidence
return mi.Modifiers.HasModifier(Modifiers.Alt) ? int.MaxValue : 0;
}
public Order IssueOrder(Actor self, int2 xy, MouseInput mi, Actor underCursor)
{
if (mi.Button == MouseButton.Left) return null;