1
0
Fork 0
forked from fte/fteqw

A fix so *spectator via forceinfokey works properly.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@806 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-01-17 17:46:49 +00:00
parent 2cc4209738
commit f09294cc07

View file

@ -7313,7 +7313,7 @@ void PF_ForceInfoKey(progfuncs_t *prinst, struct globalvars_s *pr_globals)
}
else if (e1 <= sv.allocated_client_slots)
{ //woo. we found a client.
Info_SetValueForKey(svs.clients[e1-1].userinfo, key, value, MAX_INFO_STRING);
Info_SetValueForStarKey(svs.clients[e1-1].userinfo, key, value, MAX_INFO_STRING);
SV_ExtractFromUserinfo (&svs.clients[e1-1]);
@ -7323,6 +7323,9 @@ void PF_ForceInfoKey(progfuncs_t *prinst, struct globalvars_s *pr_globals)
MSG_WriteString (&sv.reliable_datagram, key);
MSG_WriteString (&sv.reliable_datagram, Info_ValueForKey(svs.clients[e1-1].userinfo, key));
if (!strcmp(key, "*spectator"))
svs.clients[e1-1].spectator = !!atoi(value);
G_FLOAT(OFS_RETURN) = 1;
}
else