mirror the chase and watervis serverinfo keys in the cl struct so

Info_ValueForKey doesn't get hit so often.
This commit is contained in:
Bill Currie 2001-10-01 01:51:36 +00:00
parent e9c420c749
commit 7fcdffb42e
6 changed files with 20 additions and 8 deletions

View file

@ -143,8 +143,7 @@ vlen (vec3_t v)
qboolean
Cam_DrawViewModel (void)
{
if (atoi (Info_ValueForKey (cl.serverinfo, "chase"))
&& chase_active->int_val)
if (cl.chase && chase_active->int_val)
return false;
if (!cl.spectator)
@ -159,8 +158,7 @@ Cam_DrawViewModel (void)
qboolean
Cam_DrawPlayer (int playernum)
{
if (atoi (Info_ValueForKey (cl.serverinfo, "chase")) == 0
|| chase_active->int_val == 0)
if (cl.chase == 0 || chase_active->int_val == 0)
return true;
if (cl.spectator && autocam && locked && cl_chasecam->int_val &&