mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-02 17:41:10 +00:00
fix a snafu in SVC_DirectConnect related to info strings, make
Info_ParseString take (and pass on to Info_SetValueForStarKey) a flags arg and simplify the flags handing in Info_SetValueForStarKey.
This commit is contained in:
parent
b6a3bc8d1c
commit
d93fceea38
6 changed files with 25 additions and 36 deletions
|
@ -1038,7 +1038,7 @@ CL_UpdateUserinfo (void)
|
|||
if (*info) {
|
||||
// a totally empty userinfo string should not be possible
|
||||
player->userid = uid;
|
||||
player->userinfo = Info_ParseString (info, MAX_INFO_STRING);
|
||||
player->userinfo = Info_ParseString (info, MAX_INFO_STRING, 0);
|
||||
CL_ProcessUserInfo (slot, player);
|
||||
} else {
|
||||
// the server dropped the client
|
||||
|
@ -1067,7 +1067,7 @@ CL_SetInfo (void)
|
|||
Con_DPrintf ("SETINFO %s: %s=%s\n", player->name, key, value);
|
||||
|
||||
if (!player->userinfo)
|
||||
player->userinfo = Info_ParseString ("", MAX_INFO_STRING);
|
||||
player->userinfo = Info_ParseString ("", MAX_INFO_STRING, 0);
|
||||
|
||||
flags = !strequal (key, "name");
|
||||
flags |= strequal (key, "team") << 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue