1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 23:27:25 +08:00

Use tuple deconstruction to swap values

This commit is contained in:
Berkan Diler 2020-01-08 20:46:17 +01:00
parent 34d8740ec4
commit ed2bf5154d

View File

@ -125,11 +125,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
private void setRange(double p0, double p1)
{
if (p0 > p1)
{
double temp = p0;
p0 = p1;
p1 = temp;
}
(p0, p1) = (p1, p0);
if (SnakedStart == p0 && SnakedEnd == p1) return;