reduce gl_rmain's dependency on cl*.h

This commit is contained in:
Bill Currie 2001-05-21 00:22:35 +00:00
parent 1aef81e9ef
commit ece576ed4b
9 changed files with 51 additions and 32 deletions

View file

@ -96,6 +96,7 @@
#include "host.h"
#include "net.h"
#include "pmove.h"
#include "r_cvar.h"
#include "sbar.h"
#include "view.h"
@ -1484,8 +1485,13 @@ Host_Frame (float time)
|| (cl.stats[STAT_ITEMS] & IT_INVISIBILITY)
|| cl.stats[STAT_HEALTH] <= 0);
r_force_fullscreen = cl.intermission;
r_paused = cl.paused;
r_view_model = &cl.viewent;
// don't allow cheats in multiplayer
if (!atoi (Info_ValueForKey (cl.serverinfo, "watervis")))
Cvar_SetValue (r_wateralpha, 1);
SCR_UpdateScreen (realtime);
if (host_speeds->int_val)