mirror of
https://github.com/ppy/osu
synced 2025-01-05 05:39:49 +00:00
Fix CursorTrail corruption by resetting on load.
This commit is contained in:
parent
b6e7e054c3
commit
8040d6a03f
@ -32,7 +32,7 @@ namespace osu.Game.Graphics.Cursor
|
||||
private double timeOffset;
|
||||
|
||||
private float time;
|
||||
|
||||
|
||||
private TrailDrawNodeSharedData trailDrawNodeSharedData = new TrailDrawNodeSharedData();
|
||||
private const int max_sprites = 2048;
|
||||
|
||||
@ -77,6 +77,12 @@ namespace osu.Game.Graphics.Cursor
|
||||
Scale = new Vector2(1 / texture.ScaleAdjust);
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
resetTime();
|
||||
}
|
||||
|
||||
protected override void Update()
|
||||
{
|
||||
base.Update();
|
||||
|
Loading…
Reference in New Issue
Block a user