1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 15:22:55 +08:00

Fix group start/end time not calculating correctly

This commit is contained in:
Salman Ahmed 2024-03-08 01:59:26 +03:00
parent 585ab59768
commit 9b77d8c972

View File

@ -30,13 +30,13 @@ namespace osu.Game.Storyboards.Commands
/// Returns the earliest start time of the commands added to this group. /// Returns the earliest start time of the commands added to this group.
/// </summary> /// </summary>
[JsonIgnore] [JsonIgnore]
public double StartTime { get; private set; } public double StartTime { get; private set; } = double.MaxValue;
/// <summary> /// <summary>
/// Returns the latest end time of the commands added to this group. /// Returns the latest end time of the commands added to this group.
/// </summary> /// </summary>
[JsonIgnore] [JsonIgnore]
public double EndTime { get; private set; } public double EndTime { get; private set; } = double.MinValue;
[JsonIgnore] [JsonIgnore]
public double Duration => EndTime - StartTime; public double Duration => EndTime - StartTime;