mirror of
https://github.com/ppy/osu.git
synced 2026-05-21 01:39:54 +08:00
Fix CursorTrail corruption by resetting on load.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user