[nexuiz-commits] r6142 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Mar 13 17:25:41 EDT 2009


Author: div0
Date: 2009-03-13 17:25:41 -0400 (Fri, 13 Mar 2009)
New Revision: 6142

Modified:
   trunk/data/qcsrc/server/g_subs.qc
Log:
do the same as last commit, but don't rely on the function call happening in a non-clmovement frame


Modified: trunk/data/qcsrc/server/g_subs.qc
===================================================================
--- trunk/data/qcsrc/server/g_subs.qc	2009-03-13 21:23:18 UTC (rev 6141)
+++ trunk/data/qcsrc/server/g_subs.qc	2009-03-13 21:25:41 UTC (rev 6142)
@@ -22,7 +22,7 @@
 	e.animstate_startframe = anim_x;
 	e.animstate_numframes = anim_y;
 	e.animstate_framerate = anim_z;
-	e.animstate_starttime = time - frametime * 0.1; // shift it a bit into the past to prevent float inaccuracy hiccups
+	e.animstate_starttime = time - 0.1 / e.animstate_framerate; // shift it a little bit into the past to prevent float inaccuracy hiccups
 	e.animstate_endtime = e.animstate_starttime + e.animstate_numframes / e.animstate_framerate;
 	e.animstate_looping = looping;
 	e.animstate_override = override;



More information about the nexuiz-commits mailing list