mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 07:11:41 +00:00
fix an old bug that would mess up bots (geez, globals can suck)
This commit is contained in:
parent
9c59d2e14e
commit
f9541dcae7
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue