1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 22:22:55 +08:00

Better life time end.

This commit is contained in:
smoogipooo 2017-03-29 09:36:07 +09:00
parent 7b479ac737
commit 2a018e708d
2 changed files with 11 additions and 1 deletions

View File

@ -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)
{
if (userTriggered)

View File

@ -30,7 +30,6 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable
protected override void LoadComplete()
{
LifetimeStart = HitObject.StartTime - HitObject.PreEmpt * 2;
LifetimeEnd = HitObject.StartTime + HitObject.PreEmpt;
base.LoadComplete();
}