mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 15:42:54 +08:00
Better life time end.
This commit is contained in:
parent
7b479ac737
commit
2a018e708d
@ -35,6 +35,17 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void LoadComplete()
|
||||||
|
{
|
||||||
|
base.LoadComplete();
|
||||||
|
|
||||||
|
// This is naive, however it's based on the reasoning that the hit target
|
||||||
|
// is further than mid point of the play field, so the time taken to scroll in should always
|
||||||
|
// be greater than the time taken to scroll out to the left of the screen.
|
||||||
|
// Thus, using PreEmpt here is enough for the drum roll to completely scroll out.
|
||||||
|
LifetimeEnd = drumRoll.EndTime + drumRoll.PreEmpt;
|
||||||
|
}
|
||||||
|
|
||||||
protected override void CheckJudgement(bool userTriggered)
|
protected override void CheckJudgement(bool userTriggered)
|
||||||
{
|
{
|
||||||
if (userTriggered)
|
if (userTriggered)
|
||||||
|
@ -30,7 +30,6 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable
|
|||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
{
|
{
|
||||||
LifetimeStart = HitObject.StartTime - HitObject.PreEmpt * 2;
|
LifetimeStart = HitObject.StartTime - HitObject.PreEmpt * 2;
|
||||||
LifetimeEnd = HitObject.StartTime + HitObject.PreEmpt;
|
|
||||||
|
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user