Remove unnecessary parentheses
This commit is contained in:
@@ -111,7 +111,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
// Cast to long to avoid overflow when multiplying by the health
|
||||
var hp = health != null ? (long)health.Value.HP : 1L;
|
||||
var maxHP = health != null ? (long)health.Value.MaxHP : 1L;
|
||||
var refund = (int)((sellValue * info.RefundPercent * hp) / (100 * maxHP));
|
||||
var refund = (int)(sellValue * info.RefundPercent * hp / (100 * maxHP));
|
||||
|
||||
return "Refund: $" + refund;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user