diff options
author | glx <glx@openttd.org> | 2019-11-26 01:28:03 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-12-23 17:30:13 +0000 |
commit | 42144ecd562ee05423e16452cc999929296b138c (patch) | |
tree | 8f31fec9ef64cd4e627147b4622daa1ef4a7fd28 /src/gfx.cpp | |
parent | b769eb30c43ccbc4e60b8b7df024253ac55d2265 (diff) | |
download | openttd-42144ecd562ee05423e16452cc999929296b138c.tar.xz |
Add: a TextColour flag to ignore colour changes from strings
Diffstat (limited to 'src/gfx.cpp')
-rw-r--r-- | src/gfx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp index 478acc1f2..db024c9c7 100644 --- a/src/gfx.cpp +++ b/src/gfx.cpp @@ -316,7 +316,7 @@ static void SetColourRemap(TextColour colour) * would be invisible at best, but it actually makes it illegible. */ bool no_shade = (colour & TC_NO_SHADE) != 0 || colour == TC_BLACK; bool raw_colour = (colour & TC_IS_PALETTE_COLOUR) != 0; - colour &= ~(TC_NO_SHADE | TC_IS_PALETTE_COLOUR); + colour &= ~(TC_NO_SHADE | TC_IS_PALETTE_COLOUR | TC_FORCED); _string_colourremap[1] = raw_colour ? (byte)colour : _string_colourmap[colour]; _string_colourremap[2] = no_shade ? 0 : 1; |