Round end sound now respects lobby music option toggle. (#8699)
Now it only plays when the round restarts *after* a regular roundend. Meaning that if you spam the "restartroundnow" command, it won't play even if you have roundend sounds enabled in the options.
This commit is contained in:
committed by
GitHub
parent
2bc332a1b6
commit
0c337d6235
@@ -326,7 +326,10 @@ namespace Content.Server.GameTicking
|
||||
// This ordering mechanism isn't great (no ordering of minds) but functions
|
||||
var listOfPlayerInfoFinal = listOfPlayerInfo.OrderBy(pi => pi.PlayerOOCName).ToArray();
|
||||
_playersInGame.Clear();
|
||||
RaiseNetworkEvent(new RoundEndMessageEvent(gamemodeTitle, roundEndText, roundDuration, RoundId, listOfPlayerInfoFinal.Length, listOfPlayerInfoFinal, LobbySong));
|
||||
|
||||
RaiseNetworkEvent(new RoundEndMessageEvent(gamemodeTitle, roundEndText, roundDuration, RoundId,
|
||||
listOfPlayerInfoFinal.Length, listOfPlayerInfoFinal, LobbySong,
|
||||
new SoundCollectionSpecifier("RoundEnd").GetSound()));
|
||||
}
|
||||
|
||||
public void RestartRound()
|
||||
@@ -349,7 +352,6 @@ namespace Content.Server.GameTicking
|
||||
LobbySong = _robustRandom.Pick(_lobbyMusicCollection.PickFiles).ToString();
|
||||
RandomizeLobbyBackground();
|
||||
ResettingCleanup();
|
||||
SoundSystem.Play(Filter.Broadcast(), new SoundCollectionSpecifier("RoundEnd").GetSound());
|
||||
|
||||
if (!LobbyEnabled)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user