]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix maths
authorMario <mario@smbclan.net>
Tue, 26 Jul 2016 21:39:37 +0000 (07:39 +1000)
committerMario <mario@smbclan.net>
Tue, 26 Jul 2016 21:39:37 +0000 (07:39 +1000)
qcsrc/server/steerlib.qc

index b30c221764325323fde8801fe6eae213f104a9e4..8064cd9ae12ecde6f8672058a7cfb798520e6d13 100644 (file)
@@ -601,7 +601,7 @@ void flocker_hunter_think(entity this)
             if(it == this.owner || it == ee)
                 continue;
 
-            if(!this.enemy || vlen2(this.origin - it.origin) < vlen2(this.origin - this.enemy.origin))
+            if(!this.enemy || vlen2(this.origin - it.origin) > vlen2(this.origin - this.enemy.origin))
                 this.enemy = it;
         });
     }