mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-10 22:22:10 +08:00
engine: client: do not repeatedly check cl_charset value, use generic Con_UtfProcessChar
This commit is contained in:
@@ -363,10 +363,7 @@ static void SDLash_InputEvent( SDL_TextInputEvent input )
|
||||
{
|
||||
int ch;
|
||||
|
||||
if( !Q_stricmp( cl_charset.string, "utf-8" ) )
|
||||
ch = (unsigned char)*text;
|
||||
else
|
||||
ch = Con_UtfProcessCharForce( (unsigned char)*text );
|
||||
ch = Con_UtfProcessChar((byte)*text );
|
||||
|
||||
if( !ch )
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user