Ctrl-Shift-numkey performs unit grouping into existing groups

This commit is contained in:
Curtis Shmyr
2012-02-16 20:05:10 -07:00
committed by Chris Forbes
parent 78ba76250d
commit 2972728b5e

View File

@@ -72,7 +72,8 @@ namespace OpenRA
if (actors.Count == 0)
return;
controlGroups[group].Clear();
if (!mods.HasModifier(Modifiers.Shift))
controlGroups[group].Clear();
for (var i = 0; i < 10; i++) /* all control groups */
controlGroups[i].RemoveAll(a => actors.Contains(a));