]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - mathlib.c
don't accumulate time reports for the first 10 seconds of a match so things can settle
[xonotic/darkplaces.git] / mathlib.c
index dae0de50ba070a4f144e6830e47e5fa4da125700..3bb17628dfd99a2e7f1c56bd10adbbc03795830d 100644 (file)
--- a/mathlib.c
+++ b/mathlib.c
@@ -203,6 +203,10 @@ void VectorVectors(const vec3_t forward, vec3_t right, vec3_t up)
        right[0] = forward[2];
        right[1] = -forward[0];
        right[2] = forward[1];
+       // BUG!
+       //   assume forward = {sqrt(1/3), sqrt(1/3), -sqrt(1/3)}
+       //   then right will be {-sqrt(1/3), -sqrt(1/3), sqrt(1/3)}
+       //   PROBLEM?
 
        d = DotProduct(forward, right);
        VectorMA(right, -d, forward, right);