Fix playing sounds when not adding new units to selection

This commit is contained in:
Dominic Renaud
2025-12-28 16:03:56 -08:00
committed by Paul Chote
parent f8eefe310c
commit 4c2f52a465

View File

@@ -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;