mirror of
https://github.com/ppy/osu
synced 2025-01-23 14:22:51 +00:00
Use new helper method in ModTimeRamp
This commit is contained in:
parent
a2db0afe19
commit
25120060aa
@ -7,7 +7,6 @@ using osu.Framework.Audio;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Configuration;
|
||||
using osu.Game.Rulesets.Objects;
|
||||
using osu.Game.Rulesets.UI;
|
||||
|
||||
namespace osu.Game.Rulesets.Mods
|
||||
@ -71,7 +70,7 @@ namespace osu.Game.Rulesets.Mods
|
||||
SpeedChange.SetDefault();
|
||||
|
||||
double firstObjectStart = beatmap.HitObjects.FirstOrDefault()?.StartTime ?? 0;
|
||||
double lastObjectEnd = beatmap.HitObjects.LastOrDefault()?.GetEndTime() ?? 0;
|
||||
double lastObjectEnd = beatmap.HitObjects.Any() ? beatmap.GetLastObjectTime() : 0;
|
||||
|
||||
beginRampTime = firstObjectStart;
|
||||
finalRateTime = firstObjectStart + FINAL_RATE_PROGRESS * (lastObjectEnd - firstObjectStart);
|
||||
|
Loading…
Reference in New Issue
Block a user