Fix cursor ripples being added on release positions in replays

This commit is contained in:
Salman Ahmed 2024-02-17 00:53:53 +03:00
parent 4bbb1bc67e
commit ce903987e7
1 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,7 @@
using osu.Game.Rulesets.Osu.Configuration;
using osu.Game.Rulesets.Osu.Objects;
using osu.Game.Rulesets.Osu.Skinning.Default;
using osu.Game.Screens.Play;
using osu.Game.Skinning;
using osuTK;
@ -39,6 +40,9 @@ private void load(OsuRulesetConfigManager? rulesetConfig)
public bool OnPressed(KeyBindingPressEvent<OsuAction> e)
{
if ((Clock as IGameplayClock)?.IsRewinding == true)
return false;
if (showRipples.Value)
{
AddInternal(ripplePool.Get(r =>