mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 07:42:55 +08:00
Apply suggested behaviour
This commit is contained in:
parent
68907fe1ba
commit
594ea4da5f
@ -103,13 +103,7 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
|
|
||||||
float z;
|
float z;
|
||||||
|
|
||||||
if (time < hitObject.StartTime - decelerationTime)
|
if (time < hitObject.StartTime)
|
||||||
{
|
|
||||||
double appearTime = hitObject.StartTime - hitObject.TimePreempt;
|
|
||||||
float fullDistance = decelerationDistance + (float)(baseSpeed * (hitObject.TimePreempt - decelerationTime));
|
|
||||||
z = fullDistance - (float)((Math.Max(time, appearTime) - appearTime) * baseSpeed);
|
|
||||||
}
|
|
||||||
else if (time < hitObject.StartTime)
|
|
||||||
{
|
{
|
||||||
double timeOffset = time - (hitObject.StartTime - decelerationTime);
|
double timeOffset = time - (hitObject.StartTime - decelerationTime);
|
||||||
double deceleration = (slowSpeed - baseSpeed) / decelerationTime;
|
double deceleration = (slowSpeed - baseSpeed) / decelerationTime;
|
||||||
|
Loading…
Reference in New Issue
Block a user