mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 15:22:55 +08:00
Invert unintuitive variable
This commit is contained in:
parent
1b696ade50
commit
5b07cce3cb
@ -36,7 +36,7 @@ namespace osu.Game.Rulesets.Catch.Mods
|
||||
return;
|
||||
}
|
||||
|
||||
float positionDiff = lastPosition.Value - position;
|
||||
float positionDiff = position - lastPosition.Value;
|
||||
double timeDiff = startTime - lastStartTime;
|
||||
|
||||
if (timeDiff > 1000)
|
||||
@ -99,13 +99,15 @@ namespace osu.Game.Rulesets.Catch.Mods
|
||||
{
|
||||
if (amount > 0)
|
||||
{
|
||||
if (position - amount > 0)
|
||||
position -= amount;
|
||||
// Clamp to the right bound
|
||||
if (position + amount < 1)
|
||||
position += amount;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (position - amount < 1)
|
||||
position -= amount;
|
||||
// Clamp to the left bound
|
||||
if (position + amount > 0)
|
||||
position += amount;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user