mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
Fixes some spectator keys.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1991 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
28b018e419
commit
30d5648279
1 changed files with 3 additions and 1 deletions
|
@ -2325,7 +2325,7 @@ qboolean SV_UserInfoIsBasic(char *infoname)
|
||||||
|
|
||||||
for (i = 0; basicinfos[i]; i++)
|
for (i = 0; basicinfos[i]; i++)
|
||||||
{
|
{
|
||||||
if (!strcmp(infoname, basicinfos[i]))
|
if (*infoname == '*' || !strcmp(infoname, basicinfos[i]))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -2879,6 +2879,7 @@ void Cmd_Join_f (void)
|
||||||
// turn the spectator into a player
|
// turn the spectator into a player
|
||||||
host_client->spectator = false;
|
host_client->spectator = false;
|
||||||
Info_RemoveKey (host_client->userinfo, "*spectator");
|
Info_RemoveKey (host_client->userinfo, "*spectator");
|
||||||
|
Info_RemoveKey (host_client->userinfobasic, "*spectator");
|
||||||
|
|
||||||
// FIXME, bump the client's userid?
|
// FIXME, bump the client's userid?
|
||||||
|
|
||||||
|
@ -2961,6 +2962,7 @@ void Cmd_Observe_f (void)
|
||||||
// turn the player into a spectator
|
// turn the player into a spectator
|
||||||
host_client->spectator = true;
|
host_client->spectator = true;
|
||||||
Info_SetValueForStarKey (host_client->userinfo, "*spectator", "1", sizeof(host_client->userinfo));
|
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?
|
// FIXME, bump the client's userid?
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue