1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 14:17:26 +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;