From 881f24c1cc0254eb13bd76a11c46d33e0bd3725c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20Husti=C4=87?= Date: Tue, 14 Jul 2015 14:44:10 +0100 Subject: [PATCH] Rank+1 displays only on levelup. --- OpenRA.Mods.Common/Traits/GainsExperience.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/GainsExperience.cs b/OpenRA.Mods.Common/Traits/GainsExperience.cs index 96fd69cd31..a627221b0a 100644 --- a/OpenRA.Mods.Common/Traits/GainsExperience.cs +++ b/OpenRA.Mods.Common/Traits/GainsExperience.cs @@ -95,12 +95,12 @@ namespace OpenRA.Mods.Common.Traits foreach (var u in upgrades) um.GrantUpgrade(self, u, this); - } - if (!silent) - { - Sound.PlayNotification(self.World.Map.Rules, self.Owner, "Sounds", "LevelUp", self.Owner.Country.InternalName); - self.World.AddFrameEndTask(w => w.Add(new CrateEffect(self, "levelup", info.LevelUpPalette))); + if (!silent) + { + Sound.PlayNotification(self.World.Map.Rules, self.Owner, "Sounds", "LevelUp", self.Owner.Country.InternalName); + self.World.AddFrameEndTask(w => w.Add(new CrateEffect(self, "levelup", info.LevelUpPalette))); + } } }