1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:33:30 +08:00

Inline temporary variable

This commit is contained in:
Bartłomiej Dach 2023-02-04 14:36:30 +01:00
parent a1343dacc1
commit 49443f0b55
No known key found for this signature in database

View File

@ -196,10 +196,8 @@ namespace osu.Game.Rulesets.Osu.Edit
if (Vector2.Distance(closestSnapPosition, screenSpacePosition) < snapRadius)
{
var snap = closestSnapPosition;
// only return distance portion, since time is not really valid
snapResult = new SnapResult(snap, null, playfield);
snapResult = new SnapResult(closestSnapPosition, null, playfield);
return true;
}
}