From 8f52f62dc9c847dc2a0854f1fff72039c4e2ab04 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 12 Oct 2005 23:04:25 +0000 Subject: [PATCH] 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 --- engine/server/sv_user.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/engine/server/sv_user.c b/engine/server/sv_user.c index 67d556bba..ae1dd3cc1 100644 --- a/engine/server/sv_user.c +++ b/engine/server/sv_user.c @@ -2663,6 +2663,16 @@ void SV_SetUpClientEdict (client_t *cl, edict_t *ent) if (pr_teamfield) ((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->maxspeed = cl->maxspeed = sv_maxspeed.value;