From 30d56482797465b21ecd7cd0d6fe9591535006a7 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 22 Feb 2006 23:29:59 +0000 Subject: [PATCH] Fixes some spectator keys. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1991 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_user.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/server/sv_user.c b/engine/server/sv_user.c index 772f6e544..b89ac676d 100644 --- a/engine/server/sv_user.c +++ b/engine/server/sv_user.c @@ -2325,7 +2325,7 @@ qboolean SV_UserInfoIsBasic(char *infoname) for (i = 0; basicinfos[i]; i++) { - if (!strcmp(infoname, basicinfos[i])) + if (*infoname == '*' || !strcmp(infoname, basicinfos[i])) return true; } return false; @@ -2879,6 +2879,7 @@ void Cmd_Join_f (void) // turn the spectator into a player host_client->spectator = false; Info_RemoveKey (host_client->userinfo, "*spectator"); + Info_RemoveKey (host_client->userinfobasic, "*spectator"); // FIXME, bump the client's userid? @@ -2961,6 +2962,7 @@ void Cmd_Observe_f (void) // turn the player into a spectator host_client->spectator = true; Info_SetValueForStarKey (host_client->userinfo, "*spectator", "1", sizeof(host_client->userinfo)); + Info_SetValueForStarKey (host_client->userinfobasic, "*spectator", "1", sizeof(host_client->userinfobasic)); // FIXME, bump the client's userid?