mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 12:33:01 +08:00
Account for break time
This commit is contained in:
parent
c972a4195c
commit
1dae1d8f0a
@ -19,7 +19,7 @@ namespace osu.Game.Rulesets.Edit.Checks
|
||||
|
||||
public IEnumerable<Issue> Run(BeatmapVerifierContext context)
|
||||
{
|
||||
double drainTime = context.Beatmap.CalculatePlayableLength();
|
||||
double drainTime = context.Beatmap.CalculatePlayableLength() - context.Beatmap.TotalBreakTime;
|
||||
|
||||
if (drainTime < min_drain_threshold)
|
||||
yield return new IssueTemplateTooShort(this).Create((int)(drainTime / 1000));
|
||||
|
Loading…
Reference in New Issue
Block a user