1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 20:22:55 +08:00

Replace useless "matching-code" comment with explanation of how it could happen

Co-authored-by: Dean Herbert <pe@ppy.sh>
This commit is contained in:
Salman Ahmed 2020-09-04 11:31:54 +03:00
parent 65d541456a
commit 4236e5fe71

View File

@ -279,7 +279,8 @@ namespace osu.Game.Overlays
private void changeBeatmap(WorkingBeatmap newWorking)
{
// If the provided beatmap is same as current, then there is no need to do any changes.
// This method can potentially be triggered multiple times as it is eagerly fired in next() / prev() to ensure correct execution order
// (changeBeatmap must be called before consumers receive the bindable changed event, which is not the case when called from the bindable itself).
if (newWorking == current)
return;