mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 20:32:55 +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:
commit
b9f3a1de6a
@ -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