Add basic support for grouped orders
This commit is contained in:
@@ -57,7 +57,13 @@ namespace OpenRA
|
||||
if (o == null)
|
||||
continue;
|
||||
|
||||
if (PlayVoiceForOrder(o))
|
||||
if (o.GroupedActors != null)
|
||||
{
|
||||
foreach (var subject in o.GroupedActors)
|
||||
if (PlayVoiceForOrder(Order.FromGroupedOrder(o, subject)))
|
||||
return;
|
||||
}
|
||||
else if (PlayVoiceForOrder(o))
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user