From a0d53419612ebb0747a6e66571bf524f88d2b91d Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 27 Aug 2004 00:37:05 +0000 Subject: [PATCH] trail fix. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@51 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_ents.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/engine/client/cl_ents.c b/engine/client/cl_ents.c index 3a81a6908..bb3b7ab99 100644 --- a/engine/client/cl_ents.c +++ b/engine/client/cl_ents.c @@ -1028,9 +1028,7 @@ void CL_LinkPacketEntities (void) } if (model->particletrail>=0) - { cl.lerpents[s1->number].traildist = R_RocketTrail (old_origin, ent->origin, model->particletrail, cl.lerpents[s1->number].traildist); - } //dlights are not customisable. if (model->flags & EF_ROCKET) @@ -1245,6 +1243,7 @@ void CL_ParsePlayerinfo (void) prevstate = &cl.frames[info->prevcount & UPDATE_MASK].playerstate[num]; } memcpy(state, prevstate, sizeof(player_state_t)); + info->prevcount = cl.parsecount; /* if (cls.findtrack && info->stats[STAT_HEALTH] > 0) { @@ -1275,7 +1274,10 @@ void CL_ParsePlayerinfo (void) for (i = 0; i < 3; i++) { if (flags & (DF_ANGLES << i)) - state->command.angles[i] = MSG_ReadAngle16 (); + { + state->command.angles[i] = MSG_ReadShort(); + } + state->viewangles[i] = state->command.angles[i] * (360.0/65536); } if (flags & DF_MODEL) @@ -1295,6 +1297,8 @@ void CL_ParsePlayerinfo (void) state->trans = 100; state->fatness = 0; + state->pm_type = PM_NORMAL; + return; } @@ -1913,8 +1917,13 @@ void CL_EmitEntities (void) return; cl_oldnumvisedicts = cl_numvisedicts; - cl_oldvisedicts = cl_visedicts_list[(cls.netchan.incoming_sequence-1)&1]; - cl_visedicts = cl_visedicts_list[cls.netchan.incoming_sequence&1]; + cl_oldvisedicts = cl_visedicts; + if (cl_visedicts == cl_visedicts_list[0]) + cl_visedicts = cl_visedicts_list[1]; + else + cl_visedicts = cl_visedicts_list[0]; +// cl_oldvisedicts = cl_visedicts_list[(cls.netchan.incoming_sequence-1)&1]; +// cl_visedicts = cl_visedicts_list[cls.netchan.incoming_sequence&1]; cl_numvisedicts = 0;