[qw] Move viewstate movecmd setting to input code

Cleans up cl_screen and even simplifies the code. Double bonus :)
This commit is contained in:
Bill Currie 2022-11-02 10:05:58 +09:00
parent 708978eea9
commit 010b61ee8b
2 changed files with 2 additions and 3 deletions

View file

@ -316,6 +316,8 @@ CL_SendCmd (void)
if (cls.demorecording)
CL_WriteDemoCmd (cmd);
cl.viewstate.movecmd[FORWARD] = cmd->forwardmove;
// deliver the message
if (pps_check (dontdrop))
Netchan_Transmit (&cls.netchan, buf.cursize, buf.data);

View file

@ -283,9 +283,6 @@ CL_UpdateScreen (double realtime)
cl.viewstate.intermission = cl.intermission != 0;
V_PrepBlend (&cl.viewstate);
int seq = (cls.netchan.outgoing_sequence - 1) & UPDATE_MASK;
frame_t *frame = &cl.frames[seq];
cl.viewstate.movecmd[FORWARD] = frame->cmd.forwardmove;
V_RenderView (&cl.viewstate);
SCR_UpdateScreen (cl.viewstate.camera_transform,
realtime, scr_funcs[index]);