From: Rudolf Polzer Date: Mon, 27 Feb 2012 16:25:04 +0000 (+0100) Subject: csqcmodels: don't set frametime to death time when frametime is zero, to fix death... X-Git-Tag: xonotic-v0.6.0~46 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3c92d8028b5155333ce142e96d8c977071a4ff73;p=xonotic%2Fxonotic-data.pk3dir.git csqcmodels: don't set frametime to death time when frametime is zero, to fix death anim bug --- diff --git a/qcsrc/client/csqcmodel_hooks.qc b/qcsrc/client/csqcmodel_hooks.qc index 6010cf0a5..6928cd380 100644 --- a/qcsrc/client/csqcmodel_hooks.qc +++ b/qcsrc/client/csqcmodel_hooks.qc @@ -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; \ }