Fix the funny angle lerp for grenades etc.

This commit is contained in:
Bill Currie 2012-06-26 20:45:47 +09:00
parent 53212deb61
commit d15ec2c95b
2 changed files with 8 additions and 2 deletions

View file

@ -591,6 +591,9 @@ CL_RelinkEntities (void)
continue;
}
if (cl_forcelink[i])
*old = *new;
if (cl_forcelink[i] || new->modelindex != old->modelindex) {
old->modelindex = new->modelindex;
set_entity_model (ent, new->modelindex);
@ -619,6 +622,9 @@ CL_RelinkEntities (void)
if (cl_forcelink[i]) {
// The entity was not updated in the last message so move to the
// final spot
VectorCopy (new->origin, ent->origin);
if (!(ent->model->flags & EF_ROTATE))
CL_TransformEntity (ent, new->angles, true);
if (i != cl.viewentity || chase_active->int_val) {
if (ent->efrag)
r_funcs->R_RemoveEfrags (ent);

View file

@ -553,8 +553,8 @@ CL_ParseUpdate (int bits)
else
state->angles[2] = baseline->angles[2];
if (bits & U_STEP) //FIXME lerping (see fitzquake)
forcelink = true;
// if (bits & U_STEP) //FIXME lerping (see fitzquake)
// forcelink = true;
if (cl.protocol == PROTOCOL_FITZQUAKE) {
if (bits & U_ALPHA)