[client] Merge cl_screen.c

The client state that was accessed by cl_screen is now put in viewstate
and maintained by the client before calling CL_UpdateScreen.
This commit is contained in:
Bill Currie 2022-11-02 15:08:09 +09:00
parent 9f01cb25fe
commit 4491ce213b
23 changed files with 92 additions and 346 deletions

View file

@ -176,8 +176,6 @@ extern client_static_t cls;
the client_state_t structure is wiped completely at every server signon
*/
typedef struct client_state_s {
qboolean loading;
int movemessages; // Since connecting to this server throw out
// the first couple, so the player doesn't
// accidentally do something the first frame
@ -215,7 +213,6 @@ typedef struct client_state_s {
// can't render a frame yet
double last_ping_request; // while showing scoreboard
double last_servermessage; // (realtime) for net trouble icon
/* information that is static for the entire time connected to a server */
@ -238,7 +235,6 @@ typedef struct client_state_s {
int sv_cshifts;
int no_pogo_stick;
int teamplay;
int watervis;
int fpd;
int fbskins;
@ -300,10 +296,6 @@ void Cvar_Info (void *data, const struct cvar_s *cvar);
void CL_NetGraph_Init (void);
void CL_NetGraph_Init_Cvars (void);
extern struct view_s cl_screen_view;
void CL_Init_Screen (void);
void CL_UpdateScreen (double realtime);
void CL_SetState (cactive_t state);
void CL_Cmd_ForwardToServer (void);