]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
don't do this if death_time is zero
authorRudolf Polzer <divverent@xonotic.org>
Mon, 27 Feb 2012 16:30:56 +0000 (17:30 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 27 Feb 2012 16:31:03 +0000 (17:31 +0100)
qcsrc/client/csqcmodel_hooks.qc

index 6928cd380ca4859a3dcda475b6b17404a0cce76f..d7eddbcd8edd340b70a8b4bcf0df4912bb5cb062 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) && self.ft != 0) \
+               if(IS_DEAD_FRAME(self.f) && self.ft != 0 && self.death_time != 0) \
                { \
                        self.ft = self.death_time; \
                }