From 392bc132586d9b012272a16a7529a885c40024a7 Mon Sep 17 00:00:00 2001 From: juanjp600 Date: Thu, 10 Nov 2016 21:58:35 -0300 Subject: [PATCH] Removed case check from CharacterInfo because it corrects itself Just make sure to not get the directory casing wrong and we'll be good --- Subsurface/Source/Characters/CharacterInfo.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Subsurface/Source/Characters/CharacterInfo.cs b/Subsurface/Source/Characters/CharacterInfo.cs index a789df893..4eada1df1 100644 --- a/Subsurface/Source/Characters/CharacterInfo.cs +++ b/Subsurface/Source/Characters/CharacterInfo.cs @@ -183,8 +183,7 @@ namespace Barotrauma spritePath = spritePath.Replace("[GENDER]", (this.gender == Gender.Female) ? "f" : ""); spritePath = spritePath.Replace("[HEADID]", HeadSpriteId.ToString()); - - ToolBox.IsProperFilenameCase(spritePath); + string fileName = Path.GetFileNameWithoutExtension(spritePath); //go through the files in the directory to find a matching sprite