1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 17:07:38 +08:00

Merge pull request #9396 from LumpBloom7/StatsExcludeEmptyHitWindow

Exclude hit objects with an EmptyHitWindow from being considered in TimingDistributionGraph
This commit is contained in:
Dan Balasescu 2020-06-29 21:40:38 +09:00 committed by GitHub
commit 04fe29d7be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ namespace osu.Game.Screens.Ranking.Statistics
/// <param name="hitEvents">The <see cref="HitEvent"/>s to display the timing distribution of.</param>
public HitEventTimingDistributionGraph(IReadOnlyList<HitEvent> hitEvents)
{
this.hitEvents = hitEvents;
this.hitEvents = hitEvents.Where(e => !(e.HitObject.HitWindows is HitWindows.EmptyHitWindows)).ToList();
}
[BackgroundDependencyLoader]