mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 08:32:57 +08:00
Inline temporary variable
This commit is contained in:
parent
a1343dacc1
commit
49443f0b55
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user