Rename *Time to *Ticks and increase internal resolution.

This commit is contained in:
Paul Chote
2018-10-07 15:03:19 +00:00
committed by reaperrr
parent e03abdc0da
commit 70b020205d
6 changed files with 26 additions and 23 deletions

View File

@@ -51,7 +51,7 @@ namespace OpenRA.Mods.Common.Traits.Render
if (viewer != null && !Info.DisplayStances.HasStance(self.Owner.Stances[viewer]))
return 0;
return 1 - (float)power.RemainingTime / power.TotalTime;
return 1 - (float)power.RemainingTicks / power.TotalTicks;
}
Color ISelectionBar.GetColor() { return Info.Color; }