Fix one more case of incorrect offset.

This commit is contained in:
smoogipooo 2017-09-12 18:36:31 +09:00
parent 86de4fa2e2
commit fb05552ac4
1 changed files with 1 additions and 2 deletions

View File

@ -172,9 +172,8 @@ protected override void UpdateState(ArmedState state)
const float preempt = 100;
const float out_transition_time = 300;
var offset = !AllJudged ? 0 : Time.Current - HitObject.EndTime;
double untilStartTime = HitObject.StartTime - Time.Current;
double untilJudgement = untilStartTime + offset + HitObject.Duration;
double untilJudgement = untilStartTime + (Judgements.FirstOrDefault()?.TimeOffset ?? 0) + HitObject.Duration;
targetRing.Delay(untilStartTime - preempt).ScaleTo(target_ring_scale, preempt * 4, Easing.OutQuint);
this.Delay(untilJudgement).FadeOut(out_transition_time, Easing.Out);