From c14dbb29c94a57db4582c8453935773fdd25d0df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 11 May 2013 15:25:19 +0200 Subject: [PATCH] avoid notification spam when the build palette is left-clicked fixes #2361 --- OpenRA.Mods.RA/Widgets/BuildPaletteWidget.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Widgets/BuildPaletteWidget.cs b/OpenRA.Mods.RA/Widgets/BuildPaletteWidget.cs index 735f8af598..dfecd5fb36 100755 --- a/OpenRA.Mods.RA/Widgets/BuildPaletteWidget.cs +++ b/OpenRA.Mods.RA/Widgets/BuildPaletteWidget.cs @@ -363,6 +363,8 @@ namespace OpenRA.Mods.RA.Widgets return; } } + else + Sound.PlayNotification(world.LocalPlayer, "Speech", CurrentQueue.Info.QueuedAudio, world.LocalPlayer.Country.Race); StartProduction(world, item); } @@ -389,7 +391,6 @@ namespace OpenRA.Mods.RA.Widgets void StartProduction(World world, string item) { - Sound.PlayNotification(world.LocalPlayer, "Speech", CurrentQueue.Info.QueuedAudio, world.LocalPlayer.Country.Race); world.IssueOrder(Order.StartProduction(CurrentQueue.self, item, Game.GetModifierKeys().HasModifier(Modifiers.Shift) ? 5 : 1)); }