Fixed round summary displaying the name of the starting location even if the player has reached the destination
This commit is contained in:
@@ -48,7 +48,7 @@ namespace Barotrauma
|
|||||||
|
|
||||||
summaryText = summaryText
|
summaryText = summaryText
|
||||||
.Replace("[sub]", Submarine.MainSub.Name)
|
.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);
|
var infoText = new GUITextBlock(new Rectangle(0, y, 0, 50), summaryText, "", innerFrame, true);
|
||||||
y += infoText.Rect.Height;
|
y += infoText.Rect.Height;
|
||||||
|
|||||||
Reference in New Issue
Block a user