Make hagar animation loop
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / view.qc
index debe7a5..615ec0b 100644 (file)
@@ -329,7 +329,7 @@ void viewmodel_draw(entity this)
                        this.viewmodel_angles = this.angles;
                }
                anim_update(this);
-               if (!this.animstate_override)
+               if (!this.animstate_override && !this.animstate_looping)
                        anim_set(this, this.anim_idle, true, false, false);
        }
        float f = 0; // 0..1; 0: fully active