mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
remove instead of set "" info keys for localinfo
This commit is contained in:
parent
9829cf3993
commit
ac93a620d7
2 changed files with 10 additions and 3 deletions
|
@ -901,8 +901,11 @@ SV_Localinfo_f (void)
|
|||
SV_Printf ("Star variables cannot be changed.\n");
|
||||
return;
|
||||
}
|
||||
Info_SetValueForKey (localinfo, Cmd_Argv (1), Cmd_Argv (2),
|
||||
!sv_highchars->int_val);
|
||||
if (*Cmd_Argv (2))
|
||||
Info_SetValueForKey (localinfo, Cmd_Argv (1), Cmd_Argv (2),
|
||||
!sv_highchars->int_val);
|
||||
else
|
||||
Info_RemoveKey (localinfo, Cmd_Argv (1));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -1361,7 +1361,11 @@ PF_setinfokey (progs_t *pr)
|
|||
net_svc_setinfo_t block;
|
||||
|
||||
if (e1 == 0) {
|
||||
Info_SetValueForKey (localinfo, key, value, !sv_highchars->int_val);
|
||||
if (*value)
|
||||
Info_SetValueForKey (localinfo, key, value,
|
||||
!sv_highchars->int_val);
|
||||
else
|
||||
Info_RemoveKey (localinfo, key);
|
||||
} else if (e1 <= MAX_CLIENTS) {
|
||||
Info_SetValueForKey (svs.clients[e1 - 1].userinfo, key, value,
|
||||
!sv_highchars->int_val);
|
||||
|
|
Loading…
Reference in a new issue