Merge pull request #10570 from abcdefg30/InsufficientFunds

Add support for playing an InsufficientFunds warning
This commit is contained in:
Oliver Brakmann
2016-02-27 18:09:13 +01:00
9 changed files with 95 additions and 6 deletions

View File

@@ -233,7 +233,6 @@ namespace OpenRA.Mods.Common.Widgets
{
// Queue a new item
Game.Sound.Play(TabClick);
Game.Sound.PlayNotification(World.Map.Rules, World.LocalPlayer, "Speech", CurrentQueue.Info.QueuedAudio, World.LocalPlayer.Faction.InternalName);
World.IssueOrder(Order.StartProduction(CurrentQueue.Actor, icon.Name, handleCount));
return true;
}