Fixed EndRound music looping forever. Closes #334

This commit is contained in:
Joonas Rikkonen
2018-04-18 11:02:58 +03:00
parent 9a8f13140e
commit edf5bacc89
5 changed files with 18 additions and 11 deletions
@@ -39,6 +39,7 @@ namespace Barotrauma
if (!singleplayer)
{
SoundPlayer.OverrideMusicType = gameOver ? "crewdead" : "endround";
SoundPlayer.OverrideMusicDuration = 18.0f;
}
string summaryText = TextManager.Get(gameOver ? "RoundSummaryGameOver" :