1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 16:03:01 +08:00

Rename tracking variable and change conditional as per feedback.

This commit is contained in:
Dean Herbert 2016-12-13 18:12:35 +09:00
parent c420c55291
commit db5c2efa15

View File

@ -98,14 +98,14 @@ namespace osu.Game.Modes.Osu.Objects.Drawables.Pieces
} }
} }
private bool validTrackingTime => Time.Current >= slider.StartTime && Time.Current <= slider.EndTime; private bool canCurrentlyTrack => Time.Current >= slider.StartTime && Time.Current < slider.EndTime;
protected override void Update() protected override void Update()
{ {
base.Update(); base.Update();
CornerRadius = DrawWidth / 2; CornerRadius = DrawWidth / 2;
Tracking = validTrackingTime && lastState != null && Contains(lastState.Mouse.NativeState.Position) && lastState.Mouse.HasMainButtonPressed; Tracking = canCurrentlyTrack && lastState != null && Contains(lastState.Mouse.NativeState.Position) && lastState.Mouse.HasMainButtonPressed;
} }
public void UpdateProgress(double progress, int repeat) public void UpdateProgress(double progress, int repeat)