mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-16 17:02:37 +01:00
Codechange: Add ColourShade enum.
This commit is contained in:
committed by
Peter Nelson
parent
0463d4c198
commit
ae3390fe48
@@ -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, 4) == c) return true;
|
||||
if (GetColourGradient(i, SHADE_4) == c) return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user