Fixed setting of custom color for static text in menu

This commit is contained in:
alexey.lysiuk 2016-07-17 15:34:57 +03:00 committed by Christoph Oelckers
parent 446bc1018c
commit 8369833dc5

View file

@ -662,7 +662,7 @@ static EColorRange ParseOptionColor(FScanner &sc, FOptionMenuDescriptor *desc)
if (sc.CheckString(",")) if (sc.CheckString(","))
{ {
sc.MustGetString(); sc.MustGetString();
EColorRange cr = V_FindFontColor(sc.String); cr = V_FindFontColor(sc.String);
if (cr == CR_UNTRANSLATED && !sc.Compare("untranslated") && isdigit(sc.String[0])) if (cr == CR_UNTRANSLATED && !sc.Compare("untranslated") && isdigit(sc.String[0]))
{ {
if (strtol(sc.String, NULL, 0)) cr = OptionSettings.mFontColorHeader; if (strtol(sc.String, NULL, 0)) cr = OptionSettings.mFontColorHeader;