summaryrefslogtreecommitdiff
path: root/src/baseq2/g_func.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2017-01-24 14:36:08 -0900
committerKent Overstreet <kent.overstreet@gmail.com>2017-01-24 14:38:58 -0900
commit2c5d063a01adbf40e124645548a79b0c2f5b4ee5 (patch)
treee76ce28d2f8b993e9781a3baf3a432caa601aba6 /src/baseq2/g_func.c
parent7f362ff033196b4c60f2c4279fd0f357844227b3 (diff)
fast inv_sqrt()
Diffstat (limited to 'src/baseq2/g_func.c')
-rw-r--r--src/baseq2/g_func.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/baseq2/g_func.c b/src/baseq2/g_func.c
index b08a5f2..026fd05 100644
--- a/src/baseq2/g_func.c
+++ b/src/baseq2/g_func.c
@@ -111,7 +111,7 @@ void Move_Calc(edict_t *ent, vec3_t dest, void(*func)(edict_t*))
{
VectorClear(ent->velocity);
VectorSubtract(dest, ent->s.origin, ent->moveinfo.dir);
- ent->moveinfo.remaining_distance = VectorNormalize(ent->moveinfo.dir);
+ ent->moveinfo.remaining_distance = VectorNormalizeLen(ent->moveinfo.dir);
ent->moveinfo.endfunc = func;
if (ent->moveinfo.speed == ent->moveinfo.accel && ent->moveinfo.speed == ent->moveinfo.decel) {