1
0
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:
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; 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;