X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fpathlib%2Fpathlib.qh;h=4ae0c2c86d4b5f0f2970cf9fdcda76393dfb84bc;hb=c533c16caf393c1440a10aa49d3581e280c9f4bd;hp=7364440240e719e51afcbeaab3f9e5f41c36d32f;hpb=109c5785a22fb4336ac5e91d5f1fa91678582164;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/pathlib/pathlib.qh b/qcsrc/server/pathlib/pathlib.qh index 736444024..4ae0c2c86 100644 --- a/qcsrc/server/pathlib/pathlib.qh +++ b/qcsrc/server/pathlib/pathlib.qh @@ -1,5 +1,9 @@ #pragma once +#ifndef DEBUGPATHING + #define DEBUGPATHING 0 +#endif + .entity pathlib_list; .entity path_next; .entity path_prev; @@ -46,7 +50,7 @@ float pathlib_closed_cnt; float pathlib_made_cnt; float pathlib_merge_cnt; float pathlib_searched_cnt; -float pathlib_bestopen_seached; +float pathlib_bestopen_searched; float pathlib_bestcash_hits; float pathlib_bestcash_saved; float pathlib_gridsize; @@ -63,10 +67,10 @@ entity best_open_node; vector tile_check_up; vector tile_check_down; float tile_check_size; -float tile_check_cross(vector where); -float tile_check_plus(vector where); -float tile_check_star(vector where); -var float tile_check(vector where); +float tile_check_cross(entity this, vector where); +float tile_check_plus(entity this, vector where); +float tile_check_star(entity this, vector where); +var float tile_check(entity this, vector where); float movenode_stepsize; vector movenode_stepup; @@ -76,11 +80,11 @@ vector movenode_boxmax; vector movenode_boxmin; float pathlib_movenode_goodnode; -vector pathlib_wateroutnode(vector start, vector end, float doedge); -vector pathlib_swimnode(vector start, vector end, float doedge); -vector pathlib_flynode(vector start, vector end, float doedge); -vector pathlib_walknode(vector start, vector end, float doedge); -var vector pathlib_movenode(vector start, vector end, float doedge); +vector pathlib_wateroutnode(entity this, vector start, vector end, float doedge); +vector pathlib_swimnode(entity this, vector start, vector end, float doedge); +vector pathlib_flynode(entity this, vector start, vector end, float doedge); +vector pathlib_walknode(entity this, vector start, vector end, float doedge); +var vector pathlib_movenode(entity this, vector start, vector end, float doedge); float pathlib_expandnode_star(entity node, vector start, vector goal); float pathlib_expandnode_box(entity node, vector start, vector goal);