mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-29 16:01:44 +00:00
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:
parent
e9c420c749
commit
7fcdffb42e
6 changed files with 20 additions and 8 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue