Fix playing sounds when not adding new units to selection
This commit is contained in:
committed by
Paul Chote
parent
f8eefe310c
commit
4c2f52a465
@@ -130,7 +130,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
return;
|
||||
|
||||
// Play the selection voice from one of the selected actors
|
||||
foreach (var actor in actors)
|
||||
foreach (var actor in actors.Intersect(newSelectionCollection))
|
||||
{
|
||||
if (actor.Owner != world.LocalPlayer || !actor.IsInWorld)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user