mirror of
https://github.com/ppy/osu.git
synced 2025-01-22 13:45:08 +08:00
Rename variables for catch-specific casting to avoid any confusion
This commit is contained in:
parent
19657cd00e
commit
2151c1863e
@ -40,12 +40,12 @@ namespace osu.Game.Rulesets.Catch.Edit
|
|||||||
|
|
||||||
EditorBeatmap.PerformOnSelection(h =>
|
EditorBeatmap.PerformOnSelection(h =>
|
||||||
{
|
{
|
||||||
if (!(h is CatchHitObject hitObject)) return;
|
if (!(h is CatchHitObject catchObject)) return;
|
||||||
|
|
||||||
hitObject.OriginalX += deltaX;
|
catchObject.OriginalX += deltaX;
|
||||||
|
|
||||||
// Move the nested hit objects to give an instant result before nested objects are recreated.
|
// Move the nested hit objects to give an instant result before nested objects are recreated.
|
||||||
foreach (var nested in hitObject.NestedHitObjects.OfType<CatchHitObject>())
|
foreach (var nested in catchObject.NestedHitObjects.OfType<CatchHitObject>())
|
||||||
nested.OriginalX += deltaX;
|
nested.OriginalX += deltaX;
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -59,8 +59,8 @@ namespace osu.Game.Rulesets.Catch.Edit
|
|||||||
bool changed = false;
|
bool changed = false;
|
||||||
EditorBeatmap.PerformOnSelection(h =>
|
EditorBeatmap.PerformOnSelection(h =>
|
||||||
{
|
{
|
||||||
if (h is CatchHitObject hitObject)
|
if (h is CatchHitObject catchObject)
|
||||||
changed |= handleFlip(selectionRange, hitObject);
|
changed |= handleFlip(selectionRange, catchObject);
|
||||||
});
|
});
|
||||||
return changed;
|
return changed;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user