Remove 12 character limit from mix content names (XCC compatibility).

This commit is contained in:
Paul Chote
2013-05-17 20:49:24 +12:00
parent 8b4814e399
commit 50b87b580a

View File

@@ -53,9 +53,6 @@ namespace OpenRA.FileFormats
public static uint HashFilename(string name) // Red Alert 1 and Tiberian Dawn
{
if (name.Length > 12)
name = name.Substring(0, 12);
name = name.ToUpperInvariant();
if (name.Length % 4 != 0)
name = name.PadRight(name.Length + (4 - name.Length % 4), '\0');