]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/pathlib/expandnode.qc
Merge branch 'master' into TimePath/debug_draw
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / pathlib / expandnode.qc
index 47f160244c1ac61d8680f034e590f86dfb9d5173..1f095a7856a1f8ff8304004016b9e9c73ac4dfdb 100644 (file)
@@ -1,3 +1,6 @@
+#include "pathlib.qh"
+#include "utility.qh"
+
 vector plib_points2[8];
 vector plib_points[8];
 float  plib_fvals[8];
@@ -5,7 +8,7 @@ float  plib_fvals[8];
 float pathlib_expandnode_starf(entity node, vector start, vector goal)
 {
     vector where,f,r,t;
-    float fc,fc2,c;
+    float fc,c;
     entity nap;
 
     where = node.origin;
@@ -49,7 +52,7 @@ float pathlib_expandnode_starf(entity node, vector start, vector goal)
     plib_points2[0] = plib_points[0];
     vector bp;
     bp = plib_points[0];
-    fc2 = 0;
+    int fc2 = 0;
     for(int i = 0; i < 8; ++i)
     {
         c = 0;
@@ -102,7 +105,7 @@ float pathlib_expandnode_star(entity node, vector start, vector goal)
 
     if(node.pathlib_node_edgeflags == pathlib_node_edgeflag_none)
     {
-        dprint("Node at ", vtos(node.origin), " not expanable");
+        LOG_TRACE("Node at ", vtos(node.origin), " not expanable");
         return pathlib_open_cnt;
     }