Fixes bots spawned via sv_impulse, supposedly.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1420 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
dad702522c
commit
a2035c91ed
1 changed files with 4 additions and 0 deletions
|
@ -2667,6 +2667,8 @@ void SV_Impulse_f (void)
|
||||||
|
|
||||||
pr_global_struct->time = sv.time;
|
pr_global_struct->time = sv.time;
|
||||||
|
|
||||||
|
svs.clients[i].state = cs_connected;
|
||||||
|
|
||||||
SetUpClientEdict(&svs.clients[i], svs.clients[i].edict);
|
SetUpClientEdict(&svs.clients[i], svs.clients[i].edict);
|
||||||
|
|
||||||
svs.clients[i].edict->v->netname = PR_SetString(svprogfuncs, "Console");
|
svs.clients[i].edict->v->netname = PR_SetString(svprogfuncs, "Console");
|
||||||
|
@ -2696,6 +2698,8 @@ void SV_Impulse_f (void)
|
||||||
|
|
||||||
pr_global_struct->self = EDICT_TO_PROG(svprogfuncs, svs.clients[i].edict);
|
pr_global_struct->self = EDICT_TO_PROG(svprogfuncs, svs.clients[i].edict);
|
||||||
PR_ExecuteProgram (svprogfuncs, pr_global_struct->ClientDisconnect);
|
PR_ExecuteProgram (svprogfuncs, pr_global_struct->ClientDisconnect);
|
||||||
|
|
||||||
|
svs.clients[i].state = cs_free;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue