mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 03:56:43 +00:00
Codechange: make Shade a scoped enum (#15571)
Renamed from `ColourShade` to `Shade` for brevity.
This commit is contained in:
+1
-1
@@ -548,7 +548,7 @@ bool IsValidConsoleColour(TextColour c)
|
||||
* colour gradient, so it must be one of those. */
|
||||
c &= ~TC_IS_PALETTE_COLOUR;
|
||||
for (Colours i = Colours::Begin; i < Colours::End; i++) {
|
||||
if (GetColourGradient(i, SHADE_NORMAL).p == c) return true;
|
||||
if (GetColourGradient(i, Shade::Normal).p == c) return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user