Introduce SoundType enum.
This commit is contained in:
@@ -76,7 +76,7 @@ namespace OpenRA.Mods.D2k.Activities
|
||||
|
||||
var attackPosition = self.CenterPosition;
|
||||
var affectedPlayers = targets.Select(x => x.Owner).Distinct().ToList();
|
||||
Game.Sound.Play(swallow.Info.WormAttackSound, self.CenterPosition);
|
||||
Game.Sound.Play(SoundType.World, swallow.Info.WormAttackSound, self.CenterPosition);
|
||||
|
||||
Game.RunAfterDelay(1000, () =>
|
||||
{
|
||||
|
||||
@@ -152,7 +152,7 @@ namespace OpenRA.Mods.D2k.Traits
|
||||
self.World.Add(projectile);
|
||||
|
||||
if (args.Weapon.Report != null && args.Weapon.Report.Any())
|
||||
Game.Sound.Play(args.Weapon.Report.Random(self.World.SharedRandom), self.CenterPosition);
|
||||
Game.Sound.Play(SoundType.World, args.Weapon.Report.Random(self.World.SharedRandom), self.CenterPosition);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user