mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 16:25:32 +08:00
Merge pull request #1043 from peppy/fix-songprogress-endtime
Fix incorrect end time calculation in SongProgressGraph
This commit is contained in:
commit
c9cdb9c865
@ -25,7 +25,7 @@ namespace osu.Game.Screens.Play
|
||||
return;
|
||||
|
||||
var firstHit = objects.First().StartTime;
|
||||
var lastHit = (objects.Last() as IHasEndTime)?.EndTime ?? 0;
|
||||
var lastHit = objects.Max(o => (o as IHasEndTime)?.EndTime ?? o.StartTime);
|
||||
|
||||
if (lastHit == 0)
|
||||
lastHit = objects.Last().StartTime;
|
||||
|
Loading…
Reference in New Issue
Block a user