1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-30 00:03:08 +08:00

Merge pull request #31523 from Rudicito/apply-offset-when-same-audio

Apply beatmap offset to all difficulties only if they have the same audio
This commit is contained in:
Dan Balasescu 2025-01-15 14:20:16 +09:00 committed by GitHub
commit b9f3a1de6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -165,13 +165,14 @@ namespace osu.Game.Screens.Play.PlayerSettings
if (setInfo == null) // only the case for tests.
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)
{
BeatmapUserSettings userSettings = b.UserSettings;
double val = Current.Value;
if (userSettings.Offset != val)
if (userSettings.Offset != val && b.AudioEquals(beatmap.Value.BeatmapInfo))
userSettings.Offset = val;
}
});