]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
csqcmodels: don't set frametime to death time when frametime is zero, to fix death...
authorRudolf Polzer <divverent@xonotic.org>
Mon, 27 Feb 2012 16:25:04 +0000 (17:25 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 27 Feb 2012 16:25:04 +0000 (17:25 +0100)
qcsrc/client/csqcmodel_hooks.qc

index 6010cf0a521e1421a8bfdaecb11bafe230652c21..6928cd380ca4859a3dcda475b6b17404a0cce76f 100644 (file)
@@ -228,7 +228,7 @@ void CSQCPlayer_FallbackFrame_PostUpdate(float isnew)
        if(isnew)
        {
 #define FIX_FRAMETIME(f,ft) \
-               if(IS_DEAD_FRAME(self.f)) \
+               if(IS_DEAD_FRAME(self.f) && self.ft != 0) \
                { \
                        self.ft = self.death_time; \
                }