avoid notification spam when the build palette is left-clicked

fixes #2361
This commit is contained in:
Matthias Mailänder
2013-05-11 15:25:19 +02:00
parent b301bc1d79
commit c14dbb29c9

View File

@@ -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));
}