StyleCop
This commit is contained in:
@@ -233,11 +233,9 @@ namespace OpenRA.Mods.RA
|
|||||||
{
|
{
|
||||||
bool hasPlayedSound = false;
|
bool hasPlayedSound = false;
|
||||||
BeginProduction(new ProductionItem(this, order.TargetString, cost, PlayerPower,
|
BeginProduction(new ProductionItem(this, order.TargetString, cost, PlayerPower,
|
||||||
() => self.World.AddFrameEndTask(
|
() => self.World.AddFrameEndTask(_ =>
|
||||||
_ =>
|
|
||||||
{
|
{
|
||||||
var isBuilding = unit.Traits.Contains<BuildingInfo>();
|
var isBuilding = unit.Traits.Contains<BuildingInfo>();
|
||||||
|
|
||||||
if (isBuilding && !hasPlayedSound)
|
if (isBuilding && !hasPlayedSound)
|
||||||
{
|
{
|
||||||
hasPlayedSound = Sound.PlayNotification(self.Owner, "Speech", Info.ReadyAudio, self.Owner.Country.Race);
|
hasPlayedSound = Sound.PlayNotification(self.Owner, "Speech", Info.ReadyAudio, self.Owner.Country.Race);
|
||||||
|
|||||||
Reference in New Issue
Block a user