]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapon/hook.qc
Simplify maths for most vlen cases
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / hook.qc
index e2884ff7962c513d153898039e986f727df40270..d76095ec8bf60504366c1ee40f694b3d8219991a 100644 (file)
@@ -451,7 +451,7 @@ void Draw_GrapplingHook(entity this)
        {
                default:
                case NET_ENT_CLIENT_HOOK:
-                       if(vlen(trace_endpos - atrans) > 0.5)
+                       if(vdist(trace_endpos - atrans, >, 0.5))
                        {
                                setorigin(this, trace_endpos); // hook endpoint!
                                this.angles = vectoangles(trace_endpos - atrans);