1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 20:07:25 +08:00

Toast now only shows when speed is actually changed

This commit is contained in:
Fabian van Oeffelt 2024-05-21 16:11:20 +02:00
parent 148afd1201
commit 3403789c6f

View File

@ -825,8 +825,6 @@ namespace osu.Game.Screens.Select
public void ChangeSpeed(double delta)
{
// Mod Change from 0.95 DC to 1.0 none to 1.05 DT/NC ?
onScreenDisplay?.Display(new SpeedChangeToast(config!, delta));
if (game == null) return;
ModNightcore modNc = (ModNightcore)((MultiMod)game.AvailableMods.Value[ModType.DifficultyIncrease].First(mod => mod is MultiMod multiMod && multiMod.Mods.Count(modType => modType is ModNightcore) > 0)).Mods.First(mod => mod is ModNightcore);
@ -841,6 +839,8 @@ namespace osu.Game.Screens.Select
if (incompatiableModActive)
return;
onScreenDisplay?.Display(new SpeedChangeToast(config!, delta));
if (rateModActive)
{
ModRateAdjust mod = (ModRateAdjust)selectedMods.Value.First(mod => mod is ModRateAdjust);