From 8040d6a03f4ae901ff67f024a443cdebcc92464f Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 2 Mar 2017 16:08:10 +0900 Subject: [PATCH] Fix CursorTrail corruption by resetting on load. --- osu.Game/Graphics/Cursor/CursorTrail.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/osu.Game/Graphics/Cursor/CursorTrail.cs b/osu.Game/Graphics/Cursor/CursorTrail.cs index 7e0937155c..e5b2c9acf9 100644 --- a/osu.Game/Graphics/Cursor/CursorTrail.cs +++ b/osu.Game/Graphics/Cursor/CursorTrail.cs @@ -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();