X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_subs.qc;h=3a242dcf32a81f157220ee8f95446589193aeaec;hb=5bd30e886480bdde34073be02fe088c631d4e66e;hp=eacba6452869ce4bb9c95836f1de2b28ccf356d7;hpb=fc2be4c1e7547ae97301f7966333e4dc858baf92;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/g_subs.qc b/qcsrc/server/g_subs.qc index eacba6452..3a242dcf3 100644 --- a/qcsrc/server/g_subs.qc +++ b/qcsrc/server/g_subs.qc @@ -187,10 +187,10 @@ float tracebox_inverted (vector v1, vector mi, vector ma, vector v2, float nomon if(c == 50) { - dprint("HOLY SHIT! When tracing from ", vtos(v1), " to ", vtos(v2), "\n"); - dprint(" Nudging gets us nowhere at ", vtos(pos), "\n"); - dprint(" trace_endpos is ", vtos(trace_endpos), "\n"); - dprint(" trace distance is ", ftos(vlen(pos - trace_endpos)), "\n"); + LOG_TRACE("HOLY SHIT! When tracing from ", vtos(v1), " to ", vtos(v2), "\n"); + LOG_TRACE(" Nudging gets us nowhere at ", vtos(pos), "\n"); + LOG_TRACE(" trace_endpos is ", vtos(trace_endpos), "\n"); + LOG_TRACE(" trace distance is ", ftos(vlen(pos - trace_endpos)), "\n"); } stopentity = trace_ent; @@ -280,48 +280,6 @@ vector findbetterlocation (vector org, float mindist) return org; } -/* -================== -crandom - -Returns a random number between -1.0 and 1.0 -================== -*/ -float crandom (void) -{ - return 2 * (random () - 0.5); -} - -/* -================== -Angc used for animations -================== -*/ - - -float angc (float a1, float a2) -{ - float a; - - while (a1 > 180) - a1 = a1 - 360; - while (a1 < -179) - a1 = a1 + 360; - - while (a2 > 180) - a2 = a2 - 360; - while (a2 < -179) - a2 = a2 + 360; - - a = a1 - a2; - while (a > 180) - a = a - 360; - while (a < -179) - a = a + 360; - - return a; -} - float LOD_customize() { float d;