X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fpathlib%2Futility.qc;h=9028f85e4f8be3ab4d65a21656634151522ecb4f;hb=a97b89297fa91ae42b9d56c262662eb34ede3e45;hp=4851dbcc0c52db8a957bf80d2ab85f2762fe80f8;hpb=b09b7687da385e1cdc51e2f63fb7de4c9f9e12a3;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/pathlib/utility.qc b/qcsrc/server/pathlib/utility.qc index 4851dbcc0..9028f85e4 100644 --- a/qcsrc/server/pathlib/utility.qc +++ b/qcsrc/server/pathlib/utility.qc @@ -2,22 +2,6 @@ #include "pathlib.qh" -float fsnap(float val,float fsize) -{ - return rint(val / fsize) * fsize; -} - -vector vsnap(vector point,float fsize) -{ - vector vret; - - vret.x = rint(point.x / fsize) * fsize; - vret.y = rint(point.y / fsize) * fsize; - vret.z = ceil(point.z / fsize) * fsize; - - return vret; -} - float location_isok(vector point, float water_isok, float air_isok) { float pc,pc2; @@ -88,7 +72,7 @@ entity pathlib_nodeatpoint(vector where) } float tile_check_cross(vector where) -{ +{SELFPARAM(); vector p,f,r; f = PLIB_FORWARD * tile_check_size; @@ -123,7 +107,7 @@ float tile_check_cross(vector where) } float tile_check_plus(vector where) -{ +{SELFPARAM(); vector p,f,r; f = PLIB_FORWARD * tile_check_size; @@ -158,7 +142,7 @@ float tile_check_plus(vector where) } float tile_check_plus2(vector where) -{ +{SELFPARAM(); vector p,f,r; float i = 0, e = 0;