Add Sound.Play overloads that play a random sound from a list
This commit is contained in:
@@ -101,7 +101,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
|
||||
if (!soundPlayed && aircraft.Info.TakeoffSounds.Length > 0 && self.IsAtGroundLevel())
|
||||
{
|
||||
Game.Sound.Play(SoundType.World, aircraft.Info.TakeoffSounds.Random(self.World.SharedRandom), aircraft.CenterPosition);
|
||||
Game.Sound.Play(SoundType.World, aircraft.Info.TakeoffSounds, self.World, aircraft.CenterPosition);
|
||||
soundPlayed = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user