(eff616485) Don't show mission info in the round summary if there's no localized "mission failed" text available and there's nothing else to show. TODO: add the text to localization so this isn't needed
This commit is contained in:
@@ -60,7 +60,9 @@ namespace Barotrauma
|
||||
endMessage, wrap: true);
|
||||
}
|
||||
|
||||
if (GameMain.GameSession.Mission != null)
|
||||
//don't show the mission info if the mission was not completed and there's no localized "mission failed" text available
|
||||
if (GameMain.GameSession.Mission != null &&
|
||||
(GameMain.GameSession.Mission.Completed || !string.IsNullOrEmpty(GameMain.GameSession.Mission.FailureMessage)))
|
||||
{
|
||||
//spacing
|
||||
new GUIFrame(new RectTransform(new Vector2(1.0f, 0.1f), infoTextBox.Content.RectTransform), style: null);
|
||||
|
||||
Reference in New Issue
Block a user