mirror of
https://github.com/ppy/osu.git
synced 2024-09-21 19:27:24 +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)
|
switch (e.Action)
|
||||||
{
|
{
|
||||||
case GlobalAction.IncreaseModSpeed:
|
case GlobalAction.IncreaseModSpeed:
|
||||||
modSpeedHotkeyHandler.ChangeSpeed(0.05, AllAvailableMods.Where(state => state.ValidForSelection.Value).Select(state => state.Mod));
|
return modSpeedHotkeyHandler.ChangeSpeed(0.05, AllAvailableMods.Where(state => state.ValidForSelection.Value).Select(state => state.Mod));
|
||||||
return true;
|
|
||||||
|
|
||||||
case GlobalAction.DecreaseModSpeed:
|
case GlobalAction.DecreaseModSpeed:
|
||||||
modSpeedHotkeyHandler.ChangeSpeed(-0.05, AllAvailableMods.Where(state => state.ValidForSelection.Value).Select(state => state.Mod));
|
return modSpeedHotkeyHandler.ChangeSpeed(-0.05, AllAvailableMods.Where(state => state.ValidForSelection.Value).Select(state => state.Mod));
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e.Repeat)
|
if (e.Repeat)
|
||||||
|
@ -1018,12 +1018,10 @@ namespace osu.Game.Screens.Select
|
|||||||
switch (e.Action)
|
switch (e.Action)
|
||||||
{
|
{
|
||||||
case GlobalAction.IncreaseModSpeed:
|
case GlobalAction.IncreaseModSpeed:
|
||||||
modSpeedHotkeyHandler.ChangeSpeed(0.05, ModUtils.FlattenMods(game.AvailableMods.Value.SelectMany(kv => kv.Value)));
|
return modSpeedHotkeyHandler.ChangeSpeed(0.05, ModUtils.FlattenMods(game.AvailableMods.Value.SelectMany(kv => kv.Value)));
|
||||||
return true;
|
|
||||||
|
|
||||||
case GlobalAction.DecreaseModSpeed:
|
case GlobalAction.DecreaseModSpeed:
|
||||||
modSpeedHotkeyHandler.ChangeSpeed(-0.05, ModUtils.FlattenMods(game.AvailableMods.Value.SelectMany(kv => kv.Value)));
|
return modSpeedHotkeyHandler.ChangeSpeed(-0.05, ModUtils.FlattenMods(game.AvailableMods.Value.SelectMany(kv => kv.Value)));
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e.Repeat)
|
if (e.Repeat)
|
||||||
|
Loading…
Reference in New Issue
Block a user