From: Mario Date: Wed, 11 May 2016 15:12:22 +0000 (+1000) Subject: Switch some vlen uses to vdist X-Git-Tag: xonotic-v0.8.2~929 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=ee0e05ca3bfacf49bed47809f42a5033f74ca8c0 Switch some vlen uses to vdist --- diff --git a/qcsrc/server/bot/navigation.qc b/qcsrc/server/bot/navigation.qc index e4e389b15c..0d2f9988f9 100644 --- a/qcsrc/server/bot/navigation.qc +++ b/qcsrc/server/bot/navigation.qc @@ -690,7 +690,7 @@ void navigation_routerating(entity this, entity e, float f, float rangebias) if(g_jetpack) if(this.items & IT_JETPACK) if(autocvar_bot_ai_navigation_jetpack) - if(vlen(this.origin - o) > autocvar_bot_ai_navigation_jetpack_mindistance) + if(vdist(this.origin - o, >, autocvar_bot_ai_navigation_jetpack_mindistance)) { vector pointa, pointb; @@ -953,7 +953,7 @@ void navigation_poptouchedgoals(entity this) if(this.speed >= autocvar_sv_maxspeed) // if -really- running if(this.goalcurrent.classname=="waypoint") { - if(vlen(this.origin - this.goalcurrent.origin)<150) + if(vdist(this.origin - this.goalcurrent.origin, <, 150)) { traceline(this.origin + this.view_ofs , this.goalcurrent.origin, true, world); if(trace_fraction==1)