From 78e0647ed3bfce9e2b4add6533dc3f0a6d5c2285 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Mon, 8 Jan 2018 15:37:22 +0200 Subject: [PATCH] Fixed submarine & location names not being replaced in the round summary popup --- .../BarotraumaClient/Source/GameSession/RoundSummary.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Barotrauma/BarotraumaClient/Source/GameSession/RoundSummary.cs b/Barotrauma/BarotraumaClient/Source/GameSession/RoundSummary.cs index 470e36492..256b5d0fa 100644 --- a/Barotrauma/BarotraumaClient/Source/GameSession/RoundSummary.cs +++ b/Barotrauma/BarotraumaClient/Source/GameSession/RoundSummary.cs @@ -41,14 +41,14 @@ namespace Barotrauma string summaryText = TextManager.Get(gameOver ? "RoundSummaryGameOver" : (progress ? "RoundSummaryProgress" : "RoundSummaryReturn")); - summaryText.Replace("[sub]", Submarine.MainSub.Name); - summaryText.Replace("[location]", GameMain.GameSession.StartLocation.Name); + summaryText = summaryText + .Replace("[sub]", Submarine.MainSub.Name) + .Replace("[location]", GameMain.GameSession.StartLocation.Name); var infoText = new GUITextBlock(new Rectangle(0, y, 0, 50), summaryText, "", innerFrame, true); y += infoText.Rect.Height; } - if (!string.IsNullOrWhiteSpace(endMessage)) { var endText = new GUITextBlock(new Rectangle(0, y, 0, 30), endMessage, "", innerFrame, true);