added Sound.PlayToPlayer. changed existing if(localPlayer) Play() idiom to use it. fixed two places that used Play where PlayToPlayer was correct (mcvUndeploy and "spyplane ready")
This commit is contained in:
@@ -41,6 +41,12 @@ namespace OpenRa
|
||||
soundEngine.Play2D(sound, false);
|
||||
}
|
||||
|
||||
public static void PlayToPlayer(Player player, string name)
|
||||
{
|
||||
if( player == player.World.LocalPlayer )
|
||||
Play( name );
|
||||
}
|
||||
|
||||
public static void PlayMusic(string name)
|
||||
{
|
||||
var sound = sounds[name];
|
||||
|
||||
Reference in New Issue
Block a user