From f9541dcae7d040c96e19e1f99d6acfb9b2dc1fed Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 7 May 2005 10:46:19 +0000 Subject: [PATCH] fix an old bug that would mess up bots (geez, globals can suck) --- qw/source/sv_user.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qw/source/sv_user.c b/qw/source/sv_user.c index c585dfc58..84546753f 100644 --- a/qw/source/sv_user.c +++ b/qw/source/sv_user.c @@ -370,12 +370,12 @@ SV_Spawn (client_t *client) memset (&ent->v, 0, sv_pr_state.progs->entityfields * 4); SVfloat (ent, colormap) = NUM_FOR_EDICT (&sv_pr_state, ent); SVfloat (ent, team) = 0; // FIXME - SVstring (ent, netname) = PR_SetString (&sv_pr_state, host_client->name); + SVstring (ent, netname) = PR_SetString (&sv_pr_state, client->name); - host_client->entgravity = 1.0; + client->entgravity = 1.0; if (sv_fields.gravity != -1) SVfloat (ent, gravity) = 1.0; - host_client->maxspeed = sv_maxspeed->value; + client->maxspeed = sv_maxspeed->value; if (sv_fields.maxspeed != -1) SVfloat (ent, maxspeed) = sv_maxspeed->value; }