Merge pull request #6984 from DeadlySurprise/yamlFix

Fixed yaml bug with leading spaces
This commit is contained in:
Oliver Brakmann
2015-01-20 21:42:22 +01:00
5 changed files with 88 additions and 15 deletions

View File

@@ -98,6 +98,8 @@ namespace OpenRA
/// <summary>Replace special character prefixes with full paths</summary>
public static string ResolvePath(string path)
{
path = path.TrimEnd(new char[] { ' ', '\t' });
// paths starting with ^ are relative to the support dir
if (path.StartsWith("^"))
path = SupportDir + path.Substring(1);