a unit can only be in one control group at a time

This commit is contained in:
Chris Forbes
2009-12-21 19:42:48 +13:00
parent 67bdf0ce30
commit d6be783ccf

View File

@@ -166,6 +166,10 @@ namespace OpenRa.Game
return;
controlGroups[group].Clear();
for (var i = 0; i < 10; i++) /* all control groups */
controlGroups[i].RemoveAll(a => uog.selection.Contains(a));
controlGroups[group].AddRange(uog.selection);
return;
}