Changed an 'if' to 'else' in Health.Tick

Since the two 'if's were mutually exclusive, the 2nd 'if' was turned into an 'else' to potentially skip that check if the 1st succeeds.
This commit is contained in:
reaperrr
2018-09-18 00:29:05 +02:00
committed by Paul Chote
parent b53c13dca4
commit 0b0c3b7170

View File

@@ -171,10 +171,9 @@ namespace OpenRA.Mods.Common.Traits
void ITick.Tick(Actor self)
{
if (hp > DisplayHP)
if (hp >= DisplayHP)
DisplayHP = hp;
if (DisplayHP > hp)
else
DisplayHP = (2 * DisplayHP + hp) / 3;
}
}