[nexuiz-commits] r6426 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Apr 4 17:37:41 EDT 2009
Author: mand1nga
Date: 2009-04-04 17:37:41 -0400 (Sat, 04 Apr 2009)
New Revision: 6426
Modified:
trunk/data/qcsrc/server/havocbot.qc
Log:
Calculate xy speed properly
Modified: trunk/data/qcsrc/server/havocbot.qc
===================================================================
--- trunk/data/qcsrc/server/havocbot.qc 2009-04-04 20:27:50 UTC (rev 6425)
+++ trunk/data/qcsrc/server/havocbot.qc 2009-04-04 21:37:41 UTC (rev 6426)
@@ -380,7 +380,8 @@
// If there is no goal try to move forward
if(self.goalcurrent==world)
{
- local float xyspeed = fabs(self.velocity_x) + fabs(self.velocity_y);
+ local vector xyvelocity = self.velocity; xyvelocity_z = 0;
+ local float xyspeed = vlen(xyvelocity);
if(xyspeed > (maxspeed / 1.5) && xyspeed > (maxspeed / 4))
{
More information about the nexuiz-commits
mailing list