]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_lerpanim.c
fix a possible bug with zym model animation (this looks like a typo, and fixing it...
[xonotic/darkplaces.git] / r_lerpanim.c
index 646033e1e7d0bf164d6f302552b7677623fb9fa0..9497ccf9a3c7d0a7137f41b295bfbcea35390f8e 100644 (file)
@@ -112,7 +112,7 @@ void R_LerpAnimation(entity_render_t *r)
 
                        if (scene->framecount > 1)
                        {
-                               sublerp = scene->framerate * (cl.time - r->frame1time);
+                               sublerp = scene->framerate * (cl.time - r->frame2time);
                                sub1 = (int) (sublerp);
                                sub2 = sub1 + 1;
                                sublerp -= sub1;