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

@@ -174,6 +174,11 @@ namespace OpenRA.Mods.RA
return info.FireDelay;
}
public int OrderPriority(Actor self, int2 xy, MouseInput mi, Actor underCursor)
{
return mi.Modifiers.HasModifier(Modifiers.Ctrl) ? int.MaxValue : 1;
}
public Order IssueOrder(Actor self, int2 xy, MouseInput mi, Actor underCursor)
{
if (mi.Button == MouseButton.Left) return null;