]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
don't spam "Frame %d missing" messages if player model is static for whatever reason
authorRudolf Polzer <divverent@xonotic.org>
Thu, 1 Mar 2012 13:24:20 +0000 (14:24 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 1 Mar 2012 13:24:20 +0000 (14:24 +0100)
qcsrc/client/csqcmodel_hooks.qc

index d7eddbcd8edd340b70a8b4bcf0df4912bb5cb062..8762592cd24a572237e3c7ffb6822c7cd614d3be 100644 (file)
@@ -243,6 +243,8 @@ float CSQCPlayer_FallbackFrame(float f)
 {
        if(frameduration(self.modelindex, f) > 0)
                return f; // goooooood
+       if(frameduration(self.modelindex, 1) <= 0)
+               return f; // this is a static model. We can't fix it if we wanted to
        switch(f)
        {
                case 23: return 11; // anim_melee -> anim_shoot