mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Document why beatLength can be NaN
This commit is contained in:
@ -373,6 +373,8 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
string[] split = line.Split(',');
|
string[] split = line.Split(',');
|
||||||
|
|
||||||
double time = getOffsetTime(Parsing.ParseDouble(split[0].Trim()));
|
double time = getOffsetTime(Parsing.ParseDouble(split[0].Trim()));
|
||||||
|
|
||||||
|
// beatLength is allowed to be NaN to handle an edge case in which some beatmaps use NaN slider velocity to disable slider tick generation (see LegacyDifficultyControlPoint).
|
||||||
double beatLength = Parsing.ParseDouble(split[1].Trim(), allowNaN: true);
|
double beatLength = Parsing.ParseDouble(split[1].Trim(), allowNaN: true);
|
||||||
|
|
||||||
// If beatLength is NaN, speedMultiplier should still be 1 because all comparisons against NaN are false.
|
// If beatLength is NaN, speedMultiplier should still be 1 because all comparisons against NaN are false.
|
||||||
|
Reference in New Issue
Block a user