Remove bogus and unnecessary Color[] FieldLoader override.

This commit is contained in:
Paul Chote
2019-03-09 11:46:46 +00:00
committed by abcdefg30
parent d70055c38d
commit 71b61ad8ee

View File

@@ -233,22 +233,6 @@ namespace OpenRA
return InvalidValueAction(value, fieldType, fieldName);
}
else if (fieldType == typeof(Color[]))
{
if (value != null)
{
var parts = value.Split(',');
var colors = new Color[parts.Length];
for (var i = 0; i < colors.Length; i++)
if (!Color.TryParse(parts[i], out colors[i]))
return InvalidValueAction(value, fieldType, fieldName);
return colors;
}
return InvalidValueAction(value, fieldType, fieldName);
}
else if (fieldType == typeof(Hotkey))
{
Hotkey res;