mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 03:56:43 +00:00
Codechange: Add distinct type to hold pixel drawing colour. (#14457)
This is used for individual pixels as well as line drawing.
This commit is contained in:
+1
-1
@@ -544,7 +544,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_NORMAL) == c) return true;
|
||||
if (GetColourGradient(i, SHADE_NORMAL).p == c) return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user