From: Rudolf Polzer Date: Thu, 1 Mar 2012 13:24:20 +0000 (+0100) Subject: don't spam "Frame %d missing" messages if player model is static for whatever reason X-Git-Tag: xonotic-v0.6.0~31 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=aa93265b55ffca03f2394dd87e8ce8df6627ec2b;p=xonotic%2Fxonotic-data.pk3dir.git don't spam "Frame %d missing" messages if player model is static for whatever reason --- diff --git a/qcsrc/client/csqcmodel_hooks.qc b/qcsrc/client/csqcmodel_hooks.qc index d7eddbcd8..8762592cd 100644 --- a/qcsrc/client/csqcmodel_hooks.qc +++ b/qcsrc/client/csqcmodel_hooks.qc @@ -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