Remove unnecessary parentheses
This commit is contained in:
@@ -126,7 +126,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
var buildTime = tooltipIcon.ProductionQueue?.GetBuildTime(actor, buildable) ?? 0;
|
||||
var timeModifier = pm != null && pm.PowerState != PowerState.Normal ? tooltipIcon.ProductionQueue.Info.LowPowerModifier : 100;
|
||||
|
||||
timeLabel.Text = formatBuildTime.Update((buildTime * timeModifier) / 100);
|
||||
timeLabel.Text = formatBuildTime.Update(buildTime * timeModifier / 100);
|
||||
timeLabel.TextColor = (pm != null && pm.PowerState != PowerState.Normal && tooltipIcon.ProductionQueue.Info.LowPowerModifier > 100) ? Color.Red : Color.White;
|
||||
var timeSize = font.Measure(timeLabel.Text);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user