mirror of
https://github.com/ppy/osu
synced 2025-01-10 08:09:40 +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)
|
if (newTeam == displayedTeam)
|
||||||
return;
|
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)
|
if (newTeam != null && displayedTeam != null)
|
||||||
sampleTeamSwap?.Play();
|
sampleTeamSwap?.Play();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user