mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 20:07:29 +08:00
Fix multiple difficulty control points sharing the same time and thus confusing slider velocity calculations
This commit is contained in:
parent
4ad99a2464
commit
df683d9114
@ -5,6 +5,7 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
using OpenTK.Graphics;
|
using OpenTK.Graphics;
|
||||||
using osu.Game.Beatmaps.Timing;
|
using osu.Game.Beatmaps.Timing;
|
||||||
using osu.Game.Beatmaps.Legacy;
|
using osu.Game.Beatmaps.Legacy;
|
||||||
@ -331,6 +332,7 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
|
|
||||||
if (speedMultiplier != difficultyPoint.SpeedMultiplier)
|
if (speedMultiplier != difficultyPoint.SpeedMultiplier)
|
||||||
{
|
{
|
||||||
|
beatmap.ControlPointInfo.DifficultyPoints.RemoveAll(x => x.Time == time);
|
||||||
beatmap.ControlPointInfo.DifficultyPoints.Add(new DifficultyControlPoint
|
beatmap.ControlPointInfo.DifficultyPoints.Add(new DifficultyControlPoint
|
||||||
{
|
{
|
||||||
Time = time,
|
Time = time,
|
||||||
|
Loading…
Reference in New Issue
Block a user