mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:07:38 +08:00
Use LastEditTime
in Editor
This commit is contained in:
parent
659fb80c16
commit
a58426dab6
@ -441,6 +441,8 @@ namespace osu.Game.Screens.Edit
|
||||
|
||||
try
|
||||
{
|
||||
editorBeatmap.BeatmapInfo.LastEditTime = clock.CurrentTime;
|
||||
|
||||
// save the loaded beatmap's data stream.
|
||||
beatmapManager.Save(editorBeatmap.BeatmapInfo, editorBeatmap.PlayableBeatmap, editorBeatmap.BeatmapSkin);
|
||||
}
|
||||
@ -833,7 +835,11 @@ namespace osu.Game.Screens.Edit
|
||||
{
|
||||
double targetTime = 0;
|
||||
|
||||
if (Beatmap.Value.Beatmap.HitObjects.Count > 0)
|
||||
if (editorBeatmap.BeatmapInfo.LastEditTime != null)
|
||||
{
|
||||
targetTime = editorBeatmap.BeatmapInfo.LastEditTime.Value;
|
||||
}
|
||||
else if (Beatmap.Value.Beatmap.HitObjects.Count > 0)
|
||||
{
|
||||
// seek to one beat length before the first hitobject
|
||||
targetTime = Beatmap.Value.Beatmap.HitObjects[0].StartTime;
|
||||
|
Loading…
Reference in New Issue
Block a user