From 027cebafddffeb0a0ff0d9efca8de9d7cd1a4cda Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Wed, 1 Aug 2018 14:09:22 +0300 Subject: [PATCH] Fixed the previously selected location staying selected but start button staying disabled when returning to the lobby screen in SP campaign. Made it impossible to progress without restarting if there were no other selectable locations. Closes #553 --- Barotrauma/BarotraumaClient/Source/Screens/LobbyScreen.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaClient/Source/Screens/LobbyScreen.cs b/Barotrauma/BarotraumaClient/Source/Screens/LobbyScreen.cs index a8df21efa..07c31eee7 100644 --- a/Barotrauma/BarotraumaClient/Source/Screens/LobbyScreen.cs +++ b/Barotrauma/BarotraumaClient/Source/Screens/LobbyScreen.cs @@ -82,10 +82,12 @@ namespace Barotrauma locationTitle.Text = TextManager.Get("Location") + ": " + campaign.Map.CurrentLocation.Name; + campaign.Map.SelectLocation(-1); + bottomPanel.ClearChildren(); campaignUI = new CampaignUI(campaign, bottomPanel); campaignUI.StartRound = StartRound; - campaignUI.OnLocationSelected = SelectLocation; + campaignUI.OnLocationSelected = SelectLocation; campaignUI.UpdateCharacterLists(); GameAnalyticsManager.SetCustomDimension01("singleplayer");