mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 11:27:24 +08:00
Do not lengthen slider curves according to the length prescribed in the .osu file for now.
This fixes some issues with the map http://osu.ppy.sh/s/484689 . There is still one problem with an almost stationary slider in this map at around the 2/3 mark, but the rest seems to work fine now.
This commit is contained in:
parent
3e42fa4f90
commit
f13303c86c
@ -101,9 +101,11 @@ namespace osu.Game.Modes.Osu.Objects
|
||||
cumulativeLength.Add(l);
|
||||
}
|
||||
|
||||
//TODO: Figure out if the following code is needed in some cases. Judging by the map
|
||||
// "Transform" http://osu.ppy.sh/s/484689 it seems like we should _not_ be doing this.
|
||||
// Lengthen slider curves that are too short compared to what's
|
||||
// in the .osu file.
|
||||
if (l < Length && calculatedPath.Count > 1)
|
||||
/*if (l < Length && calculatedPath.Count > 1)
|
||||
{
|
||||
Vector2 diff = calculatedPath[calculatedPath.Count - 1] - calculatedPath[calculatedPath.Count - 2];
|
||||
double d = diff.Length;
|
||||
@ -113,7 +115,7 @@ namespace osu.Game.Modes.Osu.Objects
|
||||
|
||||
calculatedPath[calculatedPath.Count - 1] += diff * (float)((Length - l) / d);
|
||||
cumulativeLength[calculatedPath.Count - 1] = Length;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
public void Calculate()
|
||||
|
Loading…
Reference in New Issue
Block a user