From beb6b0179630708d4cd396021b7a42fc71bdf1fb Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Fri, 6 Apr 2012 18:14:58 +1200 Subject: [PATCH] show cashticks for DonateSupplies in spec --- OpenRA.Mods.RA/Activities/DonateSupplies.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Activities/DonateSupplies.cs b/OpenRA.Mods.RA/Activities/DonateSupplies.cs index 135376c5c2..ea9d1e54f4 100644 --- a/OpenRA.Mods.RA/Activities/DonateSupplies.cs +++ b/OpenRA.Mods.RA/Activities/DonateSupplies.cs @@ -34,7 +34,7 @@ namespace OpenRA.Mods.RA.Activities target.Owner.PlayerActor.Trait().GiveCash(payload); self.Destroy(); - if (self.World.LocalPlayer != null && self.Owner.Stances[self.World.LocalPlayer] == Stance.Ally) + if (self.World.LocalPlayer == null || self.Owner.Stances[self.World.LocalPlayer] == Stance.Ally) self.World.AddFrameEndTask(w => w.Add(new CashTick(payload, 30, 2, target.CenterLocation, target.Owner.ColorRamp.GetColor(0)))); return this;