Navigation Menu

Skip to content

Commit

Permalink
Suppress 0-cash ticks on CashTricker and GivesCashOnCapture.
Browse files Browse the repository at this point in the history
  • Loading branch information
pchote committed May 7, 2018
1 parent e225322 commit 80785e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/Traits/CashTrickler.cs
Expand Up @@ -86,7 +86,7 @@ void ModifyCash(Actor self, Player newOwner, int amount)
{
amount = resources.ChangeCash(amount);

if (info.ShowTicks)
if (info.ShowTicks && amount != 0)
AddCashTick(self, amount);
}
}
Expand Down
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/Traits/GivesCashOnCapture.cs
Expand Up @@ -54,7 +54,7 @@ void INotifyCapture.OnCapture(Actor self, Actor captor, Player oldOwner, Player

var amount = resources.ChangeCash(info.Amount);

if (!info.ShowTicks)
if (!info.ShowTicks && amount != 0)
return;

self.World.AddFrameEndTask(w => w.Add(
Expand Down

0 comments on commit 80785e6

Please sign in to comment.