mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Resharper is too smart.
This commit is contained in:
@ -36,7 +36,11 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
var timingSections = new List<TimingSection>();
|
||||
|
||||
// Construct all the relevant timing sections
|
||||
ControlPoint lastTimingChange = null;
|
||||
ControlPoint lastTimingChange = Beatmap.TimingInfo.ControlPoints.FirstOrDefault(t => t.TimingChange);
|
||||
|
||||
if (lastTimingChange == null)
|
||||
throw new Exception("The Beatmap contains no timing points!");
|
||||
|
||||
foreach (ControlPoint point in Beatmap.TimingInfo.ControlPoints)
|
||||
{
|
||||
if (point.TimingChange)
|
||||
@ -92,10 +96,6 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
if (note != null)
|
||||
return new DrawableNote(note);
|
||||
|
||||
var holdNote = h as HoldNote;
|
||||
if (holdNote != null)
|
||||
return new DrawableHoldNote(holdNote);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user