Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix relax mod not considering full follow area radius when automatically holding sliders #26041

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

bdach
Copy link
Collaborator

@bdach bdach commented Dec 22, 2023

Closes #25947.

Regressed in #25776 with the changes to DrawableSliderBall.

I would have liked to include tests, but relax mod is a bit untestable, because it disengages completely in the presence of a replay:

public void ApplyToPlayer(Player player)
{
if (osuInputManager.ReplayInputHandler != null)
{
hasReplay = true;
return;
}
osuInputManager.AllowGameplayInputs = false;
}

Additionally, RulesetInputManager disengages completely from parent inputs when there is a replay active:

UseParentInput = replayInputHandler == null;

which means there is really no easy way to control positional input while still having relax logic work. So I'm hoping the fix could be considered obvious enough to not require test coverage.

…lly holding sliders

Closes ppy#25947.

Regressed in ppy#25776 with the changes to
`DrawableSliderBall`.

I would have liked to include tests, but relax mod is a bit untestable,
because it disengages completely in the presence of a replay:

	https://github.com/ppy/osu/blob/7e09164d7084265536570ac7036d7244934b651c/osu.Game.Rulesets.Osu/Mods/OsuModRelax.cs#L49-L58

Additionally, `RulesetInputManager` disengages completely from parent
inputs when there is a replay active:

	https://github.com/ppy/osu/blob/7e09164d7084265536570ac7036d7244934b651c/osu.Game/Rulesets/UI/RulesetInputManager.cs#L116

which means there is really no easy way to control positional input
while still having relax logic work. So I'm hoping the fix could be
considered obvious enough to not require test coverage.
@bdach bdach requested a review from smoogipoo December 22, 2023 11:59
@bdach bdach added the next release Pull requests which are almost there. We'll aim to get them in the next release, but no guarantees! label Dec 22, 2023
@peppy peppy merged commit 85c2484 into ppy:master Dec 22, 2023
15 of 17 checks passed
@bdach bdach deleted the fix-relax-sliders branch December 22, 2023 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:mods next release Pull requests which are almost there. We'll aim to get them in the next release, but no guarantees! ruleset/osu! size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Relax is too strict about sliders (slider break even with cursor in follow circle)
2 participants