Codechange: Give ColourShade values names instead of numbers.

This commit is contained in:
Peter Nelson
2023-12-28 10:04:55 +00:00
committed by Peter Nelson
parent ae3390fe48
commit 912d7bd80e
19 changed files with 55 additions and 55 deletions

View File

@@ -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;