1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-31 19:10:43 +08:00

Use equals instead and update other usage

This commit is contained in:
Joseph Madamba
2023-02-04 19:58:48 -08:00
Unverified
parent 5a76c1ab9c
commit 191259c050
2 changed files with 2 additions and 2 deletions
@@ -19,7 +19,7 @@ namespace osu.Game.Graphics.UserInterface
{
private Bindable<double?> lastPlaybackTime;
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => Parent?.ReceivePositionalInputAt(screenSpacePos) ?? false;
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => Parent?.ReceivePositionalInputAt(screenSpacePos) == true;
[BackgroundDependencyLoader]
private void load(SessionStatics statics)
+1 -1
View File
@@ -121,7 +121,7 @@ namespace osu.Game.Rulesets.Edit
/// </summary>
protected void ApplyDefaultsToHitObject() => HitObject.ApplyDefaults(beatmap.ControlPointInfo, beatmap.Difficulty);
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => Parent?.ReceivePositionalInputAt(screenSpacePos) ?? false;
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => Parent?.ReceivePositionalInputAt(screenSpacePos) == true;
protected override bool Handle(UIEvent e)
{