mirror of
https://github.com/ppy/osu
synced 2024-12-11 17:42:28 +00:00
Use Clock.ElapsedFrameTime instead
This commit is contained in:
parent
c4aee11fe0
commit
aec04dcf90
@ -85,8 +85,6 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
||||
public float RotationAbsolute;
|
||||
private int completeTick;
|
||||
|
||||
private double lastTime;
|
||||
|
||||
private bool updateCompleteTick() => completeTick != (completeTick = (int)(RotationAbsolute / 360));
|
||||
|
||||
private bool rotationTransferred;
|
||||
@ -113,7 +111,6 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
||||
lastAngle -= 360;
|
||||
|
||||
currentRotation += thisAngle - lastAngle;
|
||||
lastTime = Time.Current;
|
||||
RotationAbsolute += Math.Abs(thisAngle - lastAngle) * Math.Sign(Clock.ElapsedFrameTime);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user