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:
Spoike 2005-10-04 21:19:00 +00:00
parent dad702522c
commit a2035c91ed

View file

@ -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;
} }
/* /*