From dd701e981ed05d62e8c086751964729b1438dd5d Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Tue, 6 Mar 2018 17:26:43 +0200 Subject: [PATCH] Fixed MP round summary always showing the game over text if the sub didn't progress to the next location. Closes #314 --- .../BarotraumaClient/Source/GameSession/RoundSummary.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Barotrauma/BarotraumaClient/Source/GameSession/RoundSummary.cs b/Barotrauma/BarotraumaClient/Source/GameSession/RoundSummary.cs index 9ebc8759d..f30ceecf4 100644 --- a/Barotrauma/BarotraumaClient/Source/GameSession/RoundSummary.cs +++ b/Barotrauma/BarotraumaClient/Source/GameSession/RoundSummary.cs @@ -38,8 +38,6 @@ namespace Barotrauma if (!singleplayer) { - //Game over if everyone dead or didn't progress - gameOver = gameOver || !progress; SoundPlayer.OverrideMusicType = gameOver ? "crewdead" : "endround"; } @@ -50,13 +48,13 @@ namespace Barotrauma .Replace("[sub]", Submarine.MainSub.Name) .Replace("[location]", progress ? GameMain.GameSession.EndLocation.Name : GameMain.GameSession.StartLocation.Name); - var infoText = new GUITextBlock(new Rectangle(0, 0, listBox.Rect.Width-20, 0), summaryText, "", null, true); + var infoText = new GUITextBlock(new Rectangle(0, 0, listBox.Rect.Width - 20, 0), summaryText, "", null, true); infoText.Rect = new Rectangle(0, 0, infoText.Rect.Width, infoText.Rect.Height + 20); listBox.AddChild(infoText); if (!string.IsNullOrWhiteSpace(endMessage)) { - var endText = new GUITextBlock(new Rectangle(0, 0, listBox.Rect.Width-20, 0), endMessage, "", null, true); + var endText = new GUITextBlock(new Rectangle(0, 0, listBox.Rect.Width - 20, 0), endMessage, "", null, true); endText.Rect = new Rectangle(0, 0, endText.Rect.Width, endText.Rect.Height + 20); listBox.AddChild(endText); }