Will make teamskins work properly with funchars and uppercase letters in teamnames.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2637 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Molgrum 2007-09-05 22:36:23 +00:00
parent afcf2e0ce8
commit 5979a8b4df
1 changed files with 8 additions and 8 deletions

View File

@ -3017,14 +3017,14 @@ void Info_SetValueForStarKey (char *s, const char *key, const char *value, int m
c = (unsigned char)*v++;
#ifndef SERVERONLY
// client only allows highbits on name
if (stricmp(key, "name") != 0) {
c &= 127;
if (c < 32 || c > 127)
continue;
// auto lowercase team
if (stricmp(key, "team") == 0)
c = tolower(c);
}
// if (stricmp(key, "name") != 0) {
// c &= 127;
// if (c < 32 || c > 127)
// continue;
// // auto lowercase team
// if (stricmp(key, "team") == 0)
// c = tolower(c);
// }
#else
if (!sv_highchars.value) {
c &= 127;