mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 03:42:57 +08:00
Actually use return value
This commit is contained in:
parent
8cac87e496
commit
b1b207960a
@ -707,12 +707,10 @@ namespace osu.Game.Overlays.Mods
|
||||
switch (e.Action)
|
||||
{
|
||||
case GlobalAction.IncreaseModSpeed:
|
||||
modSpeedHotkeyHandler.ChangeSpeed(0.05, AllAvailableMods.Where(state => state.ValidForSelection.Value).Select(state => state.Mod));
|
||||
return true;
|
||||
return modSpeedHotkeyHandler.ChangeSpeed(0.05, AllAvailableMods.Where(state => state.ValidForSelection.Value).Select(state => state.Mod));
|
||||
|
||||
case GlobalAction.DecreaseModSpeed:
|
||||
modSpeedHotkeyHandler.ChangeSpeed(-0.05, AllAvailableMods.Where(state => state.ValidForSelection.Value).Select(state => state.Mod));
|
||||
return true;
|
||||
return modSpeedHotkeyHandler.ChangeSpeed(-0.05, AllAvailableMods.Where(state => state.ValidForSelection.Value).Select(state => state.Mod));
|
||||
}
|
||||
|
||||
if (e.Repeat)
|
||||
|
@ -1018,12 +1018,10 @@ namespace osu.Game.Screens.Select
|
||||
switch (e.Action)
|
||||
{
|
||||
case GlobalAction.IncreaseModSpeed:
|
||||
modSpeedHotkeyHandler.ChangeSpeed(0.05, ModUtils.FlattenMods(game.AvailableMods.Value.SelectMany(kv => kv.Value)));
|
||||
return true;
|
||||
return modSpeedHotkeyHandler.ChangeSpeed(0.05, ModUtils.FlattenMods(game.AvailableMods.Value.SelectMany(kv => kv.Value)));
|
||||
|
||||
case GlobalAction.DecreaseModSpeed:
|
||||
modSpeedHotkeyHandler.ChangeSpeed(-0.05, ModUtils.FlattenMods(game.AvailableMods.Value.SelectMany(kv => kv.Value)));
|
||||
return true;
|
||||
return modSpeedHotkeyHandler.ChangeSpeed(-0.05, ModUtils.FlattenMods(game.AvailableMods.Value.SelectMany(kv => kv.Value)));
|
||||
}
|
||||
|
||||
if (e.Repeat)
|
||||
|
Loading…
Reference in New Issue
Block a user