mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
[qw] Move viewstate movecmd setting to input code
Cleans up cl_screen and even simplifies the code. Double bonus :)
This commit is contained in:
parent
708978eea9
commit
010b61ee8b
2 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue