[renderer] Remove player_entity field

This was a hold-over from the gl mirror code.
This commit is contained in:
Bill Currie 2022-03-19 09:46:53 +09:00
parent ee51d06aa3
commit c3f38e1c79
4 changed files with 0 additions and 4 deletions

View file

@ -134,7 +134,6 @@ typedef struct vid_render_data_s {
qboolean paused;
int lineadj;
struct entity_s *view_model;
struct entity_s *player_entity;
float gravity;
double frametime;
double realtime;

View file

@ -48,7 +48,6 @@ vid_render_data_t vid_render_data = {
false, false, false,
0,
0, 0,
0,
0.0, 0.0,
0,
};

View file

@ -326,7 +326,6 @@ CL_RelinkEntities (void)
SET_REMOVE (&cl_forcelink, i);
}
r_data->player_entity = CL_GetEntity (cl.viewentity);
cl.viewstate.player_entity = CL_GetEntity (cl.viewentity);
cl.viewstate.player_origin
= Transform_GetWorldPosition (cl.viewstate.player_entity->transform);

View file

@ -413,7 +413,6 @@ CL_LinkPlayers (void)
// spawn light flashes, even ones coming from invisible objects
if (j == cl.playernum) {
org = cl.viewstate.player_origin;
r_data->player_entity = ent;
cl.viewstate.player_entity = ent;
clientplayer = true;
} else {