Having multiple sub files with the same name doesn't prevent clients from selecting or requesting the correct one

This commit is contained in:
Regalis
2017-03-28 21:01:44 +03:00
parent 2a5a2bc6f6
commit 5bdd801da4
4 changed files with 33 additions and 20 deletions

View File

@@ -94,9 +94,9 @@ namespace Barotrauma
return sb.ToString();
}
private string GetShortHash(string fullHash)
{
return fullHash;
public static string GetShortHash(string fullHash)
{
return fullHash.Length < 7 ? fullHash : fullHash.Substring(0, 7);
}
}
}