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:
@@ -23,11 +23,8 @@ namespace OpenRa.Traits
|
||||
return;
|
||||
|
||||
self.World.CreateActor( order.TargetString, order.TargetLocation, order.Player );
|
||||
if (order.Player == self.World.LocalPlayer)
|
||||
{
|
||||
Sound.Play("placbldg.aud");
|
||||
Sound.Play("build5.aud");
|
||||
}
|
||||
Sound.PlayToPlayer(order.Player, "placbldg.aud");
|
||||
Sound.PlayToPlayer(order.Player, "build5.aud");
|
||||
|
||||
queue.FinishProduction(unit.Category);
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user