mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-22 20:11:44 +00:00
Fix naming issue from more than 10 people all called Player.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5914 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
0ca1e9177b
commit
36f750ba23
1 changed files with 15 additions and 4 deletions
|
@ -5716,10 +5716,21 @@ void SV_DeDupeName(const char *val, client_t *cl, char *newname, size_t newnames
|
|||
|
||||
if (newname[0] == '(')
|
||||
{
|
||||
if (newname[2] == ')')
|
||||
p = newname + 3;
|
||||
else if (val[3] == ')')
|
||||
p = newname + 4;
|
||||
if (newname[1]>='0'&&newname[1]<='9')
|
||||
{
|
||||
if (newname[2] == ')')
|
||||
p = newname + 3;
|
||||
else if (newname[2]>='0'&&newname[2]<='9')
|
||||
{
|
||||
if (newname[3] == ')')
|
||||
p = newname + 4;
|
||||
else if (newname[3]>='0'&&newname[3]<='9')
|
||||
{
|
||||
if (newname[4] == ')')
|
||||
p = newname + 5;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
memcpy(tmpname, p, strlen(p)+1);
|
||||
|
|
Loading…
Reference in a new issue