Add: a TextColour flag to ignore colour changes from strings

This commit is contained in:
glx
2019-11-26 01:28:03 +01:00
committed by Charles Pigott
parent b769eb30c4
commit 42144ecd56
3 changed files with 3 additions and 2 deletions

View File

@@ -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;
}
/**