mirror of
https://github.com/ppy/osu.git
synced 2026-05-30 05:59:53 +08:00
Dedupe switch returns
This commit is contained in:
@@ -125,7 +125,7 @@ namespace osu.Game.Rulesets.Osu.Skinning.Legacy
|
||||
if (getSliderPointTexture(resultComponent.Component) is Texture texture)
|
||||
return new LegacyJudgementPieceSliderTickHit { Texture = texture };
|
||||
|
||||
return base.GetDrawableComponent(lookup);
|
||||
break;
|
||||
|
||||
// If the corresponding hit result displays a judgement and the miss texture isn't provided by this skin, don't look up the miss texture from any further skins.
|
||||
case HitResult.LargeTickMiss:
|
||||
@@ -135,12 +135,11 @@ namespace osu.Game.Rulesets.Osu.Skinning.Legacy
|
||||
: HitResult.SliderTailHit) != null)
|
||||
return base.GetDrawableComponent(lookup) ?? Drawable.Empty();
|
||||
|
||||
return base.GetDrawableComponent(lookup);
|
||||
|
||||
default:
|
||||
return base.GetDrawableComponent(lookup);
|
||||
break;
|
||||
}
|
||||
|
||||
return base.GetDrawableComponent(lookup);
|
||||
|
||||
Texture? getSliderPointTexture(HitResult result)
|
||||
{
|
||||
// https://github.com/peppy/osu-stable-reference/blob/0e91e49bc83fe8b21c3ba5f1eb2d5d06456eae84/osu!/GameModes/Play/Rulesets/Ruleset.cs#L799
|
||||
|
||||
Reference in New Issue
Block a user