mirror of https://github.com/ppy/osu
Merge pull request #1493 from smoogipoo/rewinding-robustness
Fix nested hit object judgements not being reverted
This commit is contained in:
commit
082e51969d
|
@ -51,7 +51,9 @@ private void load(KeyBindingStore keyBindings)
|
|||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
store.KeyBindingChanged -= ReloadMappings;
|
||||
|
||||
if (store != null)
|
||||
store.KeyBindingChanged -= ReloadMappings;
|
||||
}
|
||||
|
||||
protected override void ReloadMappings() => KeyBindings = store.Query(ruleset?.ID, variant).ToList();
|
||||
|
|
|
@ -212,6 +212,7 @@ protected virtual void AddNested(DrawableHitObject<TObject> h)
|
|||
nestedHitObjects = new List<DrawableHitObject<TObject>>();
|
||||
|
||||
h.OnJudgement += (d, j) => OnJudgement?.Invoke(d, j);
|
||||
h.OnJudgementRemoved += (d, j) => OnJudgementRemoved?.Invoke(d, j);
|
||||
nestedHitObjects.Add(h);
|
||||
}
|
||||
|
||||
|
|
|
@ -242,7 +242,7 @@ private void loadObjects()
|
|||
OnJudgement?.Invoke(j);
|
||||
};
|
||||
|
||||
drawableObject.OnJudgementRemoved += (d, j) => { OnJudgementRemoved?.Invoke(j); };
|
||||
drawableObject.OnJudgementRemoved += (d, j) => OnJudgementRemoved?.Invoke(j);
|
||||
|
||||
Playfield.Add(drawableObject);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue