Fix newlines in C# files.

This commit is contained in:
Paul Chote
2018-07-01 00:48:03 +01:00
committed by reaperrr
parent 6b6167d37c
commit 8c0f4fde81
15 changed files with 51 additions and 51 deletions

View File

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

View File

@@ -1,4 +1,4 @@
#region Copyright & License Information
#region Copyright & License Information
/*
* Copyright 2007-2018 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
@@ -52,7 +52,7 @@ namespace OpenRA.Mods.Common.Traits
var resources = newOwner.PlayerActor.Trait<PlayerResources>();
var amount = resources.ChangeCash(info.Amount);
var amount = resources.ChangeCash(info.Amount);
if (!info.ShowTicks && amount != 0)
return;

View File

@@ -88,16 +88,16 @@ namespace OpenRA.Mods.Common.Traits
public int ChangeCash(int amount)
{
if (amount >= 0)
if (amount >= 0)
GiveCash(amount);
else
else
{
// Don't put the player into negative funds
// Don't put the player into negative funds
amount = Math.Max(-(Cash + Resources), amount);
TakeCash(-amount);
}
TakeCash(-amount);
}
return amount;
}