mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 11:42:54 +08:00
Fix juice stream generates tiny droplet at tick time
This commit is contained in:
parent
67ea3beeb4
commit
3375096f1d
@ -94,7 +94,8 @@ namespace osu.Game.Rulesets.Catch.Objects
|
||||
while (tinyTickInterval > 100)
|
||||
tinyTickInterval /= 2;
|
||||
|
||||
for (double t = lastTickTime + tinyTickInterval; t < time; t += tinyTickInterval)
|
||||
// we don't want to generate at (t == time - epsilon) due to floating point accuracy. time - 1 seems working.
|
||||
for (double t = lastTickTime + tinyTickInterval; t < time - 1; t += tinyTickInterval)
|
||||
{
|
||||
double progress = reversed ? 1 - (t - spanStartTime) / spanDuration : (t - spanStartTime) / spanDuration;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user