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_layout.h | |
parent | b769eb30c43ccbc4e60b8b7df024253ac55d2265 (diff) | |
download | openttd-42144ecd562ee05423e16452cc999929296b138c.tar.xz |
Add: a TextColour flag to ignore colour changes from strings
Diffstat (limited to 'src/gfx_layout.h')
-rw-r--r-- | src/gfx_layout.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gfx_layout.h b/src/gfx_layout.h index c8f563591..4854be6e5 100644 --- a/src/gfx_layout.h +++ b/src/gfx_layout.h @@ -46,7 +46,7 @@ struct FontState { inline void SetColour(TextColour c) { assert(c >= TC_BLUE && c <= TC_BLACK); - this->cur_colour = c; + if ((this->cur_colour & TC_FORCED) == 0) this->cur_colour = c; } /** |