1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-20 22:21:10 +08:00

Use LastEditTime in Editor

This commit is contained in:
timiimit
2023-05-31 19:07:04 +02:00
committed by Dean Herbert
Unverified
parent 2c327a74b2
commit aa0e4e16f7
+7 -1
View File
@@ -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;