From 0eeb38a3100fc23fc9c42d4023a36d37f2fac239 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Mon, 7 May 2018 11:57:45 +0100 Subject: [PATCH] Show negative bounty cash ticks. --- OpenRA.Mods.Common/Traits/GivesBounty.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/GivesBounty.cs b/OpenRA.Mods.Common/Traits/GivesBounty.cs index 33657fb6ed..8e384d9a93 100644 --- a/OpenRA.Mods.Common/Traits/GivesBounty.cs +++ b/OpenRA.Mods.Common/Traits/GivesBounty.cs @@ -98,7 +98,7 @@ namespace OpenRA.Mods.Common.Traits return; var displayedBounty = GetDisplayedBountyValue(self); - if (Info.ShowBounty && self.IsInWorld && displayedBounty > 0 && e.Attacker.Owner.IsAlliedWith(self.World.RenderPlayer)) + if (Info.ShowBounty && self.IsInWorld && displayedBounty != 0 && e.Attacker.Owner.IsAlliedWith(self.World.RenderPlayer)) e.Attacker.World.AddFrameEndTask(w => w.Add(new FloatingText(self.CenterPosition, e.Attacker.Owner.Color.RGB, FloatingText.FormatCashTick(displayedBounty), 30))); e.Attacker.Owner.PlayerActor.Trait().ChangeCash(GetBountyValue(self));