]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rmain.c
changed all references to entity_render_t->frame to frame2 to eliminate
[xonotic/darkplaces.git] / gl_rmain.c
index 3b7cfd32a07edd9834eb5e13527c4e77ddd840a4..2883c1be92011cd594a6613395d2ef93cfd6ef7b 100644 (file)
@@ -3255,7 +3255,7 @@ void R_UpdateTextureInfo(const entity_render_t *ent, texture_t *t)
                {
                        // use an alternate animation if the entity's frame is not 0,
                        // and only if the texture has an alternate animation
-                       if (ent->frame != 0 && t->anim_total[1])
+                       if (ent->frame2 != 0 && t->anim_total[1])
                                t = t->anim_frames[1][(t->anim_total[1] >= 2) ? ((int)(r_refdef.time * 5.0f) % t->anim_total[1]) : 0];
                        else
                                t = t->anim_frames[0][(t->anim_total[0] >= 2) ? ((int)(r_refdef.time * 5.0f) % t->anim_total[0]) : 0];