fix bug in placebuilding sounds (was using Player actor location)
This commit is contained in:
@@ -51,7 +51,7 @@ namespace OpenRA.Traits
|
|||||||
var building = w.CreateActor( order.TargetString, t, order.Player );
|
var building = w.CreateActor( order.TargetString, t, order.Player );
|
||||||
if( playSounds )
|
if( playSounds )
|
||||||
foreach( var s in building.Info.Traits.Get<BuildingInfo>().BuildSounds )
|
foreach( var s in building.Info.Traits.Get<BuildingInfo>().BuildSounds )
|
||||||
Sound.PlayToPlayer( order.Player, s, self.CenterLocation );
|
Sound.PlayToPlayer( order.Player, s, building.CenterLocation );
|
||||||
playSounds = false;
|
playSounds = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -59,7 +59,7 @@ namespace OpenRA.Traits
|
|||||||
{
|
{
|
||||||
var building = w.CreateActor( order.TargetString, order.TargetLocation, order.Player );
|
var building = w.CreateActor( order.TargetString, order.TargetLocation, order.Player );
|
||||||
foreach (var s in building.Info.Traits.Get<BuildingInfo>().BuildSounds)
|
foreach (var s in building.Info.Traits.Get<BuildingInfo>().BuildSounds)
|
||||||
Sound.PlayToPlayer(order.Player, s, self.CenterLocation);
|
Sound.PlayToPlayer(order.Player, s, building.CenterLocation);
|
||||||
}
|
}
|
||||||
|
|
||||||
var facts = w.Queries.OwnedBy[self.Owner]
|
var facts = w.Queries.OwnedBy[self.Owner]
|
||||||
|
|||||||
Reference in New Issue
Block a user