Fix 'fun' chars getting stripped from player names.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5302 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
b6847664a7
commit
bf30886163
1 changed files with 3 additions and 3 deletions
|
@ -2911,10 +2911,10 @@ char *COM_DeFunString(conchar_t *str, conchar_t *stop, char *out, int outsize, q
|
|||
}
|
||||
if (d & CON_2NDCHARSETTEXT)
|
||||
{ //FIXME: convert to quake glyphs...
|
||||
if (!com_parseutf8.ival && !forceutf8 && codepoint <= 255)
|
||||
if (!com_parseutf8.ival && !forceutf8 && codepoint >= 32 && codepoint <= 127)
|
||||
{ //strip the flag and encode it in private use (so it gets encoded as quake-compatible)
|
||||
d &= ~CON_2NDCHARSETTEXT;
|
||||
codepoint |= 0xe000;
|
||||
codeflags &= ~CON_2NDCHARSETTEXT;
|
||||
codepoint |= 0xe080;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue