Properly set starting lifetime for mania hit objects.

This commit is contained in:
smoogipooo
2017-06-03 18:18:12 +09:00
parent 43f73c298f
commit d66f114b5b
2 changed files with 12 additions and 4 deletions

View File

@ -31,9 +31,9 @@ namespace osu.Game.Rulesets.Mania.UI
public const float HIT_TARGET_POSITION = 50;
private const float time_span_default = 1500;
private const float time_span_min = 10;
private const float time_span_max = 50000;
private const float time_span_step = 200;
public const float TIME_SPAN_MIN = 50;
public const float TIME_SPAN_MAX = 10000;
private const float time_span_step = 50;
/// <summary>
/// Default column keys, expanding outwards from the middle as more column are added.
@ -243,7 +243,7 @@ namespace osu.Game.Rulesets.Mania.UI
return;
timeSpan = value;
timeSpan = MathHelper.Clamp(timeSpan, time_span_min, time_span_max);
timeSpan = MathHelper.Clamp(timeSpan, TIME_SPAN_MIN, TIME_SPAN_MAX);
barLineContainer.TimeSpan = new Vector2(1, value);
Columns.ForEach(c => c.TimeSpan = value);