]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_lerpanim.c
fix some prototype warnings
[xonotic/darkplaces.git] / r_lerpanim.c
index 5fb248f78cfe0797209f40997e82374c0e324e24..753e4af25fe51c7269174cb1d30cad83af92fd73 100644 (file)
@@ -10,19 +10,23 @@ void R_LerpAnimation(entity_render_t *r)
        double sublerp, lerp, d;
        animscene_t *scene;
        frameblend_t *blend;
+
+       if (!r->model)
+               return;
+
        blend = r->frameblend;
 
        numframes = r->model->numframes;
 
        if (r->frame1 >= numframes)
        {
-               Con_Printf ("CL_LerpAnimation: no such frame %d\n", r->frame1);
+               Con_DPrintf ("CL_LerpAnimation: no such frame %d\n", r->frame1);
                r->frame1 = 0;
        }
 
        if (r->frame2 >= numframes)
        {
-               Con_Printf ("CL_LerpAnimation: no such frame %d\n", r->frame2);
+               Con_DPrintf ("CL_LerpAnimation: no such frame %d\n", r->frame2);
                r->frame2 = 0;
        }
 
@@ -155,6 +159,5 @@ void R_LerpAnimation(entity_render_t *r)
                        FRAMEBLENDINSERT
                }
        }
-       //Con_Printf("Lerp: %i:%f %i:%f %i:%f %i:%f\n", blend[0].frame, blend[0].lerp, blend[1].frame, blend[1].lerp, blend[2].frame, blend[2].lerp, blend[3].frame, blend[3].lerp);
 }