Remove bogus and unnecessary Color[] FieldLoader override.
This commit is contained in:
@@ -233,22 +233,6 @@ namespace OpenRA
|
|||||||
|
|
||||||
return InvalidValueAction(value, fieldType, fieldName);
|
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))
|
else if (fieldType == typeof(Hotkey))
|
||||||
{
|
{
|
||||||
Hotkey res;
|
Hotkey res;
|
||||||
|
|||||||
Reference in New Issue
Block a user