mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 07:11:41 +00:00
[qw] Fix an uninitialized var use
Found by valgrind
This commit is contained in:
parent
6dff00a9da
commit
108d2a0746
1 changed files with 8 additions and 10 deletions
|
@ -228,11 +228,10 @@ CL_LinkPacketEntities (void)
|
|||
CL_TransformEntity (ent, new->scale / 16, new->angles,
|
||||
new->origin);
|
||||
animation->pose1 = animation->pose2 = -1;
|
||||
} else {
|
||||
} else if (!(renderer->model->flags & EF_ROTATE)) {
|
||||
vec3_t angles, d;
|
||||
vec4f_t origin = old->origin + f * delta;
|
||||
// interpolate the origin and angles
|
||||
if (!(renderer->model->flags & EF_ROTATE)) {
|
||||
VectorSubtract (new->angles, old->angles, d);
|
||||
for (j = 0; j < 3; j++) {
|
||||
if (d[j] > 180)
|
||||
|
@ -241,7 +240,6 @@ CL_LinkPacketEntities (void)
|
|||
d[j] += 360;
|
||||
}
|
||||
VectorMultAdd (old->angles, f, d, angles);
|
||||
}
|
||||
CL_TransformEntity (ent, new->scale / 16.0, angles, origin);
|
||||
}
|
||||
if (i != cl.viewentity || chase_active->int_val) {
|
||||
|
|
Loading…
Reference in a new issue