Fixed round summary displaying the name of the starting location even if the player has reached the destination

This commit is contained in:
Joonas Rikkonen
2018-01-10 16:35:41 +02:00
parent d9fb5960e0
commit 43ceb208ef

View File

@@ -48,7 +48,7 @@ namespace Barotrauma
summaryText = summaryText
.Replace("[sub]", Submarine.MainSub.Name)
.Replace("[location]", GameMain.GameSession.StartLocation.Name);
.Replace("[location]", progress ? GameMain.GameSession.EndLocation.Name : GameMain.GameSession.StartLocation.Name);
var infoText = new GUITextBlock(new Rectangle(0, y, 0, 50), summaryText, "", innerFrame, true);
y += infoText.Rect.Height;