mirror of
https://github.com/ppy/osu
synced 2025-01-09 15:49:32 +00: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:
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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user