]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mutators/mutator/spawn_near_teammate/spawn_near_teammate.qc
Simplify maths for most vlen cases
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / spawn_near_teammate / spawn_near_teammate.qc
index 51c598f17f6846c803b5f84ff3687e440fbd9785..168a06d2e568cb2f35247551ded00019cae6550d 100644 (file)
@@ -77,7 +77,7 @@ MUTATOR_HOOKFUNCTION(spawn_near_teammate, PlayerSpawn)
                                        pc = pointcontents(trace_endpos + '0 0 1');
                                        if(pc == CONTENT_EMPTY)
                                        {
-                                               if(vlen(it.velocity) > 5)
+                                               if(vdist(it.velocity, >, 5))
                                                        fixedmakevectors(vectoangles(it.velocity));
                                                else
                                                        fixedmakevectors(it.angles);