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:
parent
34d8740ec4
commit
ed2bf5154d
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user