Cleanbuild console command resets the user statistics setting

This commit is contained in:
Joonas Rikkonen
2018-07-18 12:59:59 +03:00
parent 7799e05369
commit cbb207dbca
3 changed files with 17 additions and 5 deletions
@@ -164,7 +164,7 @@ namespace Barotrauma
GameMain.Config.Save("config.xml");
}
}
public static bool ShowUserStatisticsPrompt { get; private set; }
public static bool ShowUserStatisticsPrompt { get; set; }
public GameSettings(string filePath)
{
@@ -334,8 +334,12 @@ namespace Barotrauma
new XAttribute("soundvolume", soundVolume),
new XAttribute("verboselogging", VerboseLogging),
new XAttribute("savedebugconsolelogs", SaveDebugConsoleLogs),
new XAttribute("enablesplashscreen", EnableSplashScreen),
new XAttribute("senduserstatistics", sendUserStatistics));
new XAttribute("enablesplashscreen", EnableSplashScreen));
if (!ShowUserStatisticsPrompt)
{
doc.Root.Add(new XAttribute("senduserstatistics", sendUserStatistics));
}
if (WasGameUpdated)
{