mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 07:42:55 +08:00
Merge pull request #11179 from bdach/swell-rewind-crash
Fix swells crashing on rapid seeks in editor
This commit is contained in:
commit
52d9864818
@ -168,7 +168,7 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables
|
|||||||
|
|
||||||
foreach (var t in ticks)
|
foreach (var t in ticks)
|
||||||
{
|
{
|
||||||
if (!t.IsHit)
|
if (!t.Result.HasResult)
|
||||||
{
|
{
|
||||||
nextTick = t;
|
nextTick = t;
|
||||||
break;
|
break;
|
||||||
@ -208,7 +208,8 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
tick.TriggerResult(false);
|
if (!tick.Result.HasResult)
|
||||||
|
tick.TriggerResult(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
ApplyResult(r => r.Type = numHits > HitObject.RequiredHits / 2 ? HitResult.Ok : r.Judgement.MinResult);
|
ApplyResult(r => r.Type = numHits > HitObject.RequiredHits / 2 ? HitResult.Ok : r.Judgement.MinResult);
|
||||||
|
Loading…
Reference in New Issue
Block a user