mirror of
https://github.com/ppy/osu
synced 2024-12-24 15:53:37 +00:00
Mark some delegates as static because we can
This commit is contained in:
parent
eb90ee5415
commit
760368709a
@ -98,7 +98,7 @@ namespace osu.Game.Rulesets.Osu
|
|||||||
base.ReloadMappings(realmKeyBindings);
|
base.ReloadMappings(realmKeyBindings);
|
||||||
|
|
||||||
if (!AllowGameplayInputs)
|
if (!AllowGameplayInputs)
|
||||||
KeyBindings = KeyBindings.Where(b => b.GetAction<OsuAction>() == OsuAction.Smoke).ToList();
|
KeyBindings = KeyBindings.Where(static b => b.GetAction<OsuAction>() == OsuAction.Smoke).ToList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -218,7 +218,7 @@ namespace osu.Game.Rulesets.UI
|
|||||||
{
|
{
|
||||||
base.ReloadMappings(realmKeyBindings);
|
base.ReloadMappings(realmKeyBindings);
|
||||||
|
|
||||||
KeyBindings = KeyBindings.Where(b => RealmKeyBindingStore.CheckValidForGameplay(b.KeyCombination)).ToList();
|
KeyBindings = KeyBindings.Where(static b => RealmKeyBindingStore.CheckValidForGameplay(b.KeyCombination)).ToList();
|
||||||
RealmKeyBindingStore.ClearDuplicateBindings(KeyBindings);
|
RealmKeyBindingStore.ClearDuplicateBindings(KeyBindings);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user