forked from fte/fteqw
1
0
Fork 0

This should fix the connect-with-white-skins bug.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1465 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-10-12 23:04:25 +00:00
parent 04181ac219
commit 8f52f62dc9
1 changed files with 10 additions and 0 deletions

View File

@ -2663,6 +2663,16 @@ void SV_SetUpClientEdict (client_t *cl, edict_t *ent)
if (pr_teamfield) if (pr_teamfield)
((string_t *)ent->v)[pr_teamfield] = (string_t)PR_SetString(svprogfuncs, cl->team); ((string_t *)ent->v)[pr_teamfield] = (string_t)PR_SetString(svprogfuncs, cl->team);
{
int tc = atoi(Info_ValueForKey(host_client->userinfo, "topcolor"));
int bc = atoi(Info_ValueForKey(host_client->userinfo, "bottomcolor"));
if (tc < 0 || tc > 13)
tc = 0;
if (bc < 0 || bc > 13)
bc = 0;
ent->v->clientcolors = 16*tc + bc;
}
ent->v->gravity = cl->entgravity = 1.0; ent->v->gravity = cl->entgravity = 1.0;
ent->v->maxspeed = cl->maxspeed = sv_maxspeed.value; ent->v->maxspeed = cl->maxspeed = sv_maxspeed.value;