1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 21:52:55 +08:00

Merge pull request #27200 from frenzibyte/fix-cursor-ripple-in-replay

Fix cursor ripples displaying on release positions in replays
This commit is contained in:
Dean Herbert 2024-02-17 14:40:30 +08:00 committed by GitHub
commit 5fda3a3091
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,6 +11,7 @@ using osu.Framework.Input.Events;
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 @@ namespace osu.Game.Rulesets.Osu.UI.Cursor
public bool OnPressed(KeyBindingPressEvent<OsuAction> e)
{
if ((Clock as IGameplayClock)?.IsRewinding == true)
return false;
if (showRipples.Value)
{
AddInternal(ripplePool.Get(r =>