Add basic support for grouped orders

This commit is contained in:
abcdefg30
2019-12-12 22:37:52 +01:00
committed by atlimit8
parent fc84cd9204
commit 78bf27709f
3 changed files with 54 additions and 14 deletions

View File

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