mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 11:43:22 +08:00
Apply beatmap offset on every beatmap set difficulty if they have the same audio
This commit is contained in:
parent
ad14720714
commit
57a9911b22
@ -165,13 +165,14 @@ namespace osu.Game.Screens.Play.PlayerSettings
|
|||||||
if (setInfo == null) // only the case for tests.
|
if (setInfo == null) // only the case for tests.
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Apply to all difficulties in a beatmap set for now (they generally always share timing).
|
// Apply to all difficulties in a beatmap set if they have the same audio
|
||||||
|
// (they generally always share timing).
|
||||||
foreach (var b in setInfo.Beatmaps)
|
foreach (var b in setInfo.Beatmaps)
|
||||||
{
|
{
|
||||||
BeatmapUserSettings userSettings = b.UserSettings;
|
BeatmapUserSettings userSettings = b.UserSettings;
|
||||||
double val = Current.Value;
|
double val = Current.Value;
|
||||||
|
|
||||||
if (userSettings.Offset != val)
|
if (userSettings.Offset != val && b.AudioEquals(beatmap.Value.BeatmapInfo))
|
||||||
userSettings.Offset = val;
|
userSettings.Offset = val;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user