return of UserInfoCallback is now ignored and SV_Userinfo_f just returns as

PR_setuserinfo now does the extract from userinfo.
This commit is contained in:
Bill Currie 2001-07-24 22:11:44 +00:00
parent 576123060a
commit d12a0a930d
2 changed files with 2 additions and 5 deletions

View file

@ -1756,6 +1756,7 @@ PF_setinfokey (progs_t *pr)
} else if (e1 <= MAX_CLIENTS) {
Info_SetValueForKey (svs.clients[e1 - 1].userinfo, key, value,
MAX_INFO_STRING);
SV_ExtractFromUserinfo (&svs.clients[e1 - 1]);
MSG_WriteByte (&sv.reliable_datagram, svc_setinfo);
MSG_WriteByte (&sv.reliable_datagram, e1 - 1);
MSG_WriteString (&sv.reliable_datagram, key);

View file

@ -1104,17 +1104,13 @@ SV_SetInfo_f (void)
if (UserInfoCallback) {
float ret;
*sv_globals.self = EDICT_TO_PROG (&sv_pr_state, sv_player);
G_var (&sv_pr_state, OFS_PARM0, string) = PR_SetString (&sv_pr_state,
Cmd_Argv (1));
G_var (&sv_pr_state, OFS_PARM1, string) = PR_SetString (&sv_pr_state,
Cmd_Argv (2));
PR_ExecuteProgram (&sv_pr_state, UserInfoCallback);
ret = G_FLOAT (&sv_pr_state, OFS_RETURN); // get the return value
if (!ret)
return;
return;
} else {
char oldval[MAX_INFO_STRING];