Fix up some splitscreen issues.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5913 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2021-06-23 02:14:13 +00:00
parent 2363b05216
commit 0ca1e9177b
2 changed files with 9 additions and 5 deletions

View file

@ -2529,7 +2529,7 @@ void V_RenderView (qboolean no2d)
switch(extra)
{
#ifdef QUAKEHUD
#if 0//def QUAKEHUD
case 0: //show a mini-console.
{
console_t *con = Con_GetMain();
@ -2584,6 +2584,7 @@ void V_RenderView (qboolean no2d)
VectorCopy(cam_view.cam_desired_position, cam_view.simorg);
V_ClearRefdef(&cam_view);
SCR_VRectForPlayer(&r_refdef.grect, seatnum, maxseats);
V_EditExternalModels(0, NULL, 0);
V_RenderPlayerViews(r_refdef.playerview);
}

View file

@ -8076,10 +8076,13 @@ void SV_ExecuteClientMessage (client_t *cl)
MSGQW_ReadDeltaUsercmd (&nullcmd, &oldest, PROTOCOL_VERSION_QW);
oldest.fservertime = frame->laggedtime; //not very accurate, but our best guess.
oldest.servertime = frame->laggedtime*1000; //not very accurate
Vector2Copy(split->lastcmd.cursor_screen, oldest.cursor_screen);
VectorCopy(split->lastcmd.cursor_start, oldest.cursor_start);
VectorCopy(split->lastcmd.cursor_impact, oldest.cursor_impact);
oldest.cursor_entitynumber = split->lastcmd.cursor_entitynumber;
if (split)
{
Vector2Copy(split->lastcmd.cursor_screen, oldest.cursor_screen);
VectorCopy(split->lastcmd.cursor_start, oldest.cursor_start);
VectorCopy(split->lastcmd.cursor_impact, oldest.cursor_impact);
oldest.cursor_entitynumber = split->lastcmd.cursor_entitynumber;
}
MSGQW_ReadDeltaUsercmd (&oldest, &oldcmd, PROTOCOL_VERSION_QW);
MSGQW_ReadDeltaUsercmd (&oldcmd, &newcmd, PROTOCOL_VERSION_QW);
}