Suppress 0-cash ticks on CashTricker and GivesCashOnCapture.

This commit is contained in:
Paul Chote
2018-05-07 11:58:36 +01:00
committed by reaperrr
parent 0eeb38a310
commit 579cc090a7
2 changed files with 2 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ namespace OpenRA.Mods.Common.Traits
{
amount = resources.ChangeCash(amount);
if (info.ShowTicks)
if (info.ShowTicks && amount != 0)
AddCashTick(self, amount);
}
}

View File

@@ -54,7 +54,7 @@ namespace OpenRA.Mods.Common.Traits
var amount = resources.ChangeCash(info.Amount);
if (!info.ShowTicks)
if (!info.ShowTicks && amount != 0)
return;
self.World.AddFrameEndTask(w => w.Add(