mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
surround netquake stuff around NQPROT defines so minimal GL can build
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2863 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
d46a2ca5d5
commit
ae54e4712f
2 changed files with 18 additions and 2 deletions
|
@ -1542,13 +1542,18 @@ void CL_LinkPacketEntities (void)
|
|||
dlight_t *dl;
|
||||
vec3_t angles;
|
||||
int flicker;
|
||||
qboolean nolerp;
|
||||
|
||||
float servertime;
|
||||
|
||||
CL_CalcClientTime();
|
||||
servertime = cl.servertime;
|
||||
|
||||
pack = CL_ProcessPacketEntities(&servertime, !!cl_nolerp.value && (cls.demoplayback != DPB_MVD && cls.demoplayback != DPB_EZTV && cls.demoplayback != DPB_NETQUAKE));
|
||||
nolerp = !!cl_nolerp.value && cls.demoplayback != DPB_MVD && cls.demoplayback != DPB_EZTV;
|
||||
#ifdef NQPROT
|
||||
nolerp = nolerp && cls.demoplayback != DPB_NETQUAKE;
|
||||
#endif
|
||||
pack = CL_ProcessPacketEntities(&servertime, nolerp);
|
||||
if (!pack)
|
||||
return;
|
||||
|
||||
|
|
|
@ -544,9 +544,14 @@ static void CL_LerpMove (int pnum, float msgtime)
|
|||
int i;
|
||||
int from, to;
|
||||
|
||||
if (cl_nolerp.value || cls.demoplayback == DPB_MVD || cls.demoplayback == DPB_EZTV || cls.demoplayback == DPB_NETQUAKE)
|
||||
if (cl_nolerp.value || cls.demoplayback == DPB_MVD || cls.demoplayback == DPB_EZTV)
|
||||
return;
|
||||
|
||||
#ifdef NQPROT
|
||||
if (cls.demoplayback == DPB_NETQUAKE)
|
||||
return;
|
||||
#endif
|
||||
|
||||
if (cls.netchan.outgoing_sequence < lastsequence) {
|
||||
// reset
|
||||
lastsequence = -1;
|
||||
|
@ -725,10 +730,12 @@ void CL_PredictMovePNum (int pnum)
|
|||
return;
|
||||
}
|
||||
|
||||
#ifdef NQPROT
|
||||
if (cls.demoplayback == DPB_NETQUAKE)
|
||||
{
|
||||
cl.ackedinputsequence = cls.netchan.outgoing_sequence;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!cl.ackedinputsequence)
|
||||
{
|
||||
|
@ -820,7 +827,11 @@ fixedorg:
|
|||
|
||||
to = &cl.frames[cl.ackedinputsequence & UPDATE_MASK];
|
||||
|
||||
#ifdef NQPROT
|
||||
if (Cam_TrackNum(pnum)>=0 && !cl_nolerp.value && cls.demoplayback != DPB_MVD && cls.demoplayback != DPB_EZTV && cls.demoplayback != DPB_NETQUAKE)
|
||||
#else
|
||||
if (Cam_TrackNum(pnum)>=0 && !cl_nolerp.value && cls.demoplayback != DPB_MVD && cls.demoplayback != DPB_EZTV)
|
||||
#endif
|
||||
{
|
||||
float f;
|
||||
|
||||
|
|
Loading…
Reference in a new issue