From 122c7ec56968fa1636c304fee1f9740e3232a249 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Thu, 23 Jun 2011 19:19:30 +1200 Subject: [PATCH] Don't show bounty cashticks of $0. --- OpenRA.Mods.RA/GivesBounty.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/GivesBounty.cs b/OpenRA.Mods.RA/GivesBounty.cs index 9a02fb11fa..f15c9e44c0 100644 --- a/OpenRA.Mods.RA/GivesBounty.cs +++ b/OpenRA.Mods.RA/GivesBounty.cs @@ -45,7 +45,7 @@ namespace OpenRA.Mods.RA // 2 hundreds because of GetMultiplier and info.Percentage. var bounty = cost * GetMultiplier(self) * info.Percentage / 10000; - if (e.Attacker.World.LocalPlayer != null && e.Attacker.Owner.Stances[e.Attacker.World.LocalPlayer] == Stance.Ally) + if (bounty > 0 && e.Attacker.World.LocalPlayer != null && e.Attacker.Owner.Stances[e.Attacker.World.LocalPlayer] == Stance.Ally) e.Attacker.World.AddFrameEndTask(w => w.Add(new CashTick(bounty, 20, 1, self.CenterLocation, e.Attacker.Owner.ColorRamp.GetColor(0)))); e.Attacker.Owner.PlayerActor.Trait().GiveCash(bounty);