Codechange: Give ColourShade values names instead of numbers.
This commit is contained in:

committed by
Peter Nelson

parent
ae3390fe48
commit
912d7bd80e
@@ -494,7 +494,7 @@ bool IsValidConsoleColour(TextColour c)
|
||||
* colour gradient, so it must be one of those. */
|
||||
c &= ~TC_IS_PALETTE_COLOUR;
|
||||
for (Colours i = COLOUR_BEGIN; i < COLOUR_END; i++) {
|
||||
if (GetColourGradient(i, SHADE_4) == c) return true;
|
||||
if (GetColourGradient(i, SHADE_NORMAL) == c) return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user