trail fix.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@51 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-08-27 00:37:05 +00:00
parent 816d331b91
commit a0d5341961

View file

@ -1028,9 +1028,7 @@ void CL_LinkPacketEntities (void)
} }
if (model->particletrail>=0) if (model->particletrail>=0)
{
cl.lerpents[s1->number].traildist = R_RocketTrail (old_origin, ent->origin, model->particletrail, cl.lerpents[s1->number].traildist); cl.lerpents[s1->number].traildist = R_RocketTrail (old_origin, ent->origin, model->particletrail, cl.lerpents[s1->number].traildist);
}
//dlights are not customisable. //dlights are not customisable.
if (model->flags & EF_ROCKET) if (model->flags & EF_ROCKET)
@ -1245,6 +1243,7 @@ void CL_ParsePlayerinfo (void)
prevstate = &cl.frames[info->prevcount & UPDATE_MASK].playerstate[num]; prevstate = &cl.frames[info->prevcount & UPDATE_MASK].playerstate[num];
} }
memcpy(state, prevstate, sizeof(player_state_t)); memcpy(state, prevstate, sizeof(player_state_t));
info->prevcount = cl.parsecount;
/* if (cls.findtrack && info->stats[STAT_HEALTH] > 0) /* if (cls.findtrack && info->stats[STAT_HEALTH] > 0)
{ {
@ -1275,7 +1274,10 @@ void CL_ParsePlayerinfo (void)
for (i = 0; i < 3; i++) for (i = 0; i < 3; i++)
{ {
if (flags & (DF_ANGLES << 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) if (flags & DF_MODEL)
@ -1295,6 +1297,8 @@ void CL_ParsePlayerinfo (void)
state->trans = 100; state->trans = 100;
state->fatness = 0; state->fatness = 0;
state->pm_type = PM_NORMAL;
return; return;
} }
@ -1913,8 +1917,13 @@ void CL_EmitEntities (void)
return; return;
cl_oldnumvisedicts = cl_numvisedicts; cl_oldnumvisedicts = cl_numvisedicts;
cl_oldvisedicts = cl_visedicts_list[(cls.netchan.incoming_sequence-1)&1]; cl_oldvisedicts = cl_visedicts;
cl_visedicts = cl_visedicts_list[cls.netchan.incoming_sequence&1]; 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; cl_numvisedicts = 0;