r4862 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Oct 24 05:28:10 EDT 2008


Author: div0
Date: 2008-10-24 05:28:09 -0400 (Fri, 24 Oct 2008)
New Revision: 4862

Modified:
   trunk/data/qcsrc/server/g_subs.qc
Log:
fix SUB_Friction to only apply when onground


Modified: trunk/data/qcsrc/server/g_subs.qc
===================================================================
--- trunk/data/qcsrc/server/g_subs.qc	2008-10-24 09:25:09 UTC (rev 4861)
+++ trunk/data/qcsrc/server/g_subs.qc	2008-10-24 09:28:09 UTC (rev 4862)
@@ -35,7 +35,8 @@
 void SUB_Friction (void)
 {
 	self.nextthink = time;
-	self.velocity = self.velocity * (1 - frametime * self.friction);
+	if(self.flags & FL_ONGROUND)
+		self.velocity = self.velocity * (1 - frametime * self.friction);
 }
 
 /*




More information about the nexuiz-commits mailing list