(1fe9abf75) Fix the GetAdjacentHulls method.

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:45:36 +03:00
parent 3318fd8e14
commit 496ee1492c
31 changed files with 367 additions and 394 deletions
@@ -362,11 +362,10 @@ namespace Barotrauma
case ContentType.Character:
XDocument doc = XMLExtensions.TryLoadXml(file.Path);
string speciesName = doc.Root.GetAttributeString("name", "");
//TODO: check non-default paths if defined
filePaths.Add(RagdollParams.GetDefaultFile(speciesName, this));
filePaths.Add(RagdollParams.GetDefaultFile(speciesName));
foreach (AnimationType animationType in Enum.GetValues(typeof(AnimationType)))
{
filePaths.Add(AnimationParams.GetDefaultFile(speciesName, animationType, this));
filePaths.Add(AnimationParams.GetDefaultFile(speciesName, animationType));
}
break;
}
@@ -492,11 +491,6 @@ namespace Barotrauma
public ContentFile(string path, ContentType type, Workshop.Item workShopItem = null)
{
Path = path;
#if OSX
Path = Path.Replace("\\", "/");
#endif
Type = type;
WorkShopItem = workShopItem;
}