mirror of
https://github.com/ppy/osu
synced 2025-01-09 15:49:32 +00:00
Use .Value instead of cast
Co-Authored-By: nyquillerium <nyquill@ppy.sh>
This commit is contained in:
parent
46ecaf3d6c
commit
d7655bc579
@ -115,7 +115,7 @@ namespace osu.Game.Graphics.Containers
|
||||
var amount = (float)Interpolation.ApplyEasing(easing, Math.Min(elapsedDuration / duration, 1));
|
||||
|
||||
// Interpolate the position of the logo, where amount 0 is where the logo was when it first began interpolating, and amount 1 is the target location.
|
||||
Logo.Position = Vector2.Lerp((Vector2)startPosition, LogoTrackingPosition, amount);
|
||||
Logo.Position = Vector2.Lerp(startPosition.Value, LogoTrackingPosition, amount);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user