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:
Bill Currie 2003-02-19 17:39:21 +00:00
parent b6a3bc8d1c
commit d93fceea38
6 changed files with 25 additions and 36 deletions

View file

@ -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;