mirror of
https://github.com/ppy/osu.git
synced 2025-01-09 20:32:55 +08:00
Fix effect point scroll speeds below 0.1x not being encoded properly
Closes https://github.com/ppy/osu/issues/30472. Caused by mismatching bounds between2bd12e14db/osu.Game/Beatmaps/ControlPoints/EffectControlPoint.cs (L22-L26)
and2bd12e14db/osu.Game/Beatmaps/ControlPoints/DifficultyControlPoint.cs (L21-L28)
This commit is contained in:
parent
0e8dce5527
commit
23f3890293
@ -183,7 +183,17 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
if (scrollSpeedEncodedAsSliderVelocity)
|
if (scrollSpeedEncodedAsSliderVelocity)
|
||||||
{
|
{
|
||||||
foreach (var point in legacyControlPoints.EffectPoints)
|
foreach (var point in legacyControlPoints.EffectPoints)
|
||||||
legacyControlPoints.Add(point.Time, new DifficultyControlPoint { SliderVelocity = point.ScrollSpeed });
|
{
|
||||||
|
legacyControlPoints.Add(point.Time, new DifficultyControlPoint
|
||||||
|
{
|
||||||
|
SliderVelocityBindable =
|
||||||
|
{
|
||||||
|
MinValue = point.ScrollSpeedBindable.MinValue,
|
||||||
|
MaxValue = point.ScrollSpeedBindable.MaxValue,
|
||||||
|
Value = point.ScrollSpeedBindable.Value,
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LegacyControlPointProperties lastControlPointProperties = new LegacyControlPointProperties();
|
LegacyControlPointProperties lastControlPointProperties = new LegacyControlPointProperties();
|
||||||
|
Loading…
Reference in New Issue
Block a user