(d9829ac) v0.9.4.0

This commit is contained in:
Regalis
2019-10-24 18:05:42 +02:00
parent 9aa12bcac2
commit b39922a074
319 changed files with 12516 additions and 6815 deletions
@@ -25,7 +25,7 @@ namespace Barotrauma
texts = new Dictionary<string, List<string>>();
XDocument doc = XMLExtensions.TryLoadXml(filePath);
if (doc == null || doc.Root == null) return;
if (doc == null) { return; }
Language = doc.Root.GetAttributeString("language", "Unknown");
TranslatedName = doc.Root.GetAttributeString("translatedname", Language);
@@ -93,7 +93,7 @@ namespace Barotrauma
Dictionary<string, int> textCounts = new Dictionary<string, int>();
XDocument doc = XMLExtensions.TryLoadXml(filePath);
if (doc == null || doc.Root == null) return;
if (doc == null) { return; }
foreach (XElement subElement in doc.Root.Elements())
{