1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 12:40:18 +08:00

Add inline comment regarding team switch sample logic

Feels a bit convoluted without this. Don't really have a better
suggestion for now so a comment will do.
This commit is contained in:
Dean Herbert
2021-09-13 14:12:18 +09:00
Unverified
parent 217ca754ae
commit 7fe0eefb78
@@ -105,6 +105,8 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Participants
if (newTeam == displayedTeam)
return;
// only play the sample if an already valid team changes to another valid team.
// this avoids playing a sound for each user if the match type is changed to/from a team mode.
if (newTeam != null && displayedTeam != null)
sampleTeamSwap?.Play();