Merge pull request #5991 from obrakmann/fix5976

Make sure actors are removed from control groups when captured
This commit is contained in:
Matthias Mailänder
2014-07-26 09:25:19 +02:00

View File

@@ -65,7 +65,7 @@ namespace OpenRA
foreach (var cg in controlGroups.Values)
// note: NOT `!a.IsInWorld`, since that would remove things that are in transports.
cg.RemoveAll(a => a.Destroyed);
cg.RemoveAll(a => a.Destroyed || a.Owner != world.LocalPlayer);
}
Cache<int, List<Actor>> controlGroups = new Cache<int, List<Actor>>(_ => new List<Actor>());