mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Fix some test regressions
This commit is contained in:
@ -151,6 +151,8 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
|
|
||||||
private int calculateBeatCount(TimingControlPoint current)
|
private int calculateBeatCount(TimingControlPoint current)
|
||||||
{
|
{
|
||||||
|
if (timingPoints.Count == 0) return 0;
|
||||||
|
|
||||||
if (timingPoints[timingPoints.Count - 1] == current)
|
if (timingPoints[timingPoints.Count - 1] == current)
|
||||||
return (int)Math.Ceiling((Beatmap.Value.Track.Length - current.Time) / current.BeatLength);
|
return (int)Math.Ceiling((Beatmap.Value.Track.Length - current.Time) / current.BeatLength);
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ namespace osu.Game.Rulesets.Mania.UI
|
|||||||
{
|
{
|
||||||
base.ApplyBeatmap();
|
base.ApplyBeatmap();
|
||||||
|
|
||||||
PreferredColumns = (int)Math.Round(Beatmap.BeatmapInfo.Difficulty.CircleSize);
|
PreferredColumns = (int)Math.Max(1, Math.Round(Beatmap.BeatmapInfo.Difficulty.CircleSize));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void ApplySpeedAdjustments()
|
protected override void ApplySpeedAdjustments()
|
||||||
|
Reference in New Issue
Block a user