1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:42:57 +08:00

Apply suggested behaviour

This commit is contained in:
Andrei Zavatski 2023-12-05 16:00:20 +03:00
parent 68907fe1ba
commit 594ea4da5f

View File

@ -103,13 +103,7 @@ namespace osu.Game.Rulesets.Osu.Mods
float z;
if (time < hitObject.StartTime - decelerationTime)
{
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)
if (time < hitObject.StartTime)
{
double timeOffset = time - (hitObject.StartTime - decelerationTime);
double deceleration = (slowSpeed - baseSpeed) / decelerationTime;