Move Game.Timestep to Widget

Game.Timestep wasn't used for anything other than
UI anymore anyway, moving it makes this more clear.
This commit is contained in:
reaperrr
2021-03-28 21:51:42 +02:00
committed by Paul Chote
parent 6b93f955a4
commit 40aafe586d
3 changed files with 9 additions and 7 deletions

View File

@@ -13,6 +13,7 @@ using System.Collections.Generic;
using OpenRA.Graphics;
using OpenRA.Primitives;
using OpenRA.Traits;
using OpenRA.Widgets;
namespace OpenRA.Mods.Common.Traits
{
@@ -48,7 +49,7 @@ namespace OpenRA.Mods.Common.Traits
public void Fade(EffectType type)
{
startTime = Game.RunTime;
endTime = startTime + Game.Timestep * Info.FadeLength;
endTime = startTime + Ui.Timestep * Info.FadeLength;
frac = 1;
from = to;