let team-colored fonts use mid range
This commit is contained in:
parent
8428bbcb7d
commit
c42be7917a
1 changed files with 7 additions and 1 deletions
|
@ -79,7 +79,13 @@ std::string::const_iterator parse_markup(std::string::const_iterator i1, std::st
|
|||
if(*i1 >= '0' && *i1 <= '9' && *(i1 + 1) == 'm')
|
||||
{
|
||||
if(*i1 != '0')
|
||||
*colour = team::get_side_colour(lexical_cast<int, char>(*i1));
|
||||
{
|
||||
Uint32 rgb = team::get_side_rgb(lexical_cast<int, char>(*i1));
|
||||
SDL_Color mid_colour = { (0x00FF0000 & rgb)>>16,
|
||||
(0x0000FF00 & rgb)>>8,
|
||||
(0x000000FF & rgb), 0} ;
|
||||
*colour = mid_colour;
|
||||
}
|
||||
++i1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue