mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Use tuple deconstruction to swap values
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user