Added error message if color could not be adjusted

The failsafe in ColorValidator aborts after 255 iterations of
adjusting the color and picks a random color. This message makes it
clearer to the user. Results in two messages being displayed,
first one about adjusting and the about a random color pick.
This commit is contained in:
Robert
2019-10-24 13:40:55 +02:00
committed by Paul Chote
parent eae287efc3
commit fafa219d11

View File

@@ -161,6 +161,7 @@ namespace OpenRA.Mods.Common
if (attempt >= 255)
{
color = RandomPresetColor(random, terrainColors, playerColors);
onError("Color could not be adjusted enough, a new color has been picked.");
break;
}