From d56c15ae4985c9a27820c74adba7c90f88667538 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 30 Aug 2002 13:16:43 +0000 Subject: [PATCH] consistency cleanup of a (disabled) part of Invert_Simple git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2317 d7cf8633-e32d-0410-b094-e92efae38249 --- matrixlib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matrixlib.c b/matrixlib.c index 603b617c..40798fda 100644 --- a/matrixlib.c +++ b/matrixlib.c @@ -142,8 +142,8 @@ void Matrix4x4_Invert_Simple (matrix4x4_t *out, const matrix4x4_t *in1) (in1->m[0][0] * in1->m[0][0] + in1->m[0][1] * in1->m[0][1] + in1->m[0][2] * in1->m[0][2] + in1->m[1][0] * in1->m[1][0] + in1->m[1][1] * in1->m[1][1] + in1->m[1][2] * in1->m[1][2] + in1->m[2][0] * in1->m[2][0] + in1->m[2][1] * in1->m[2][1] + in1->m[2][2] * in1->m[2][2]); -#endif scale *= scale; +#endif // invert the rotation by transposing and multiplying by the squared // recipricol of the input matrix scale as described above @@ -518,6 +518,7 @@ void Matrix3x4_Invert_Simple (matrix3x4_t *out, const matrix3x4_t *in1) (in1->m[0][0] * in1->m[0][0] + in1->m[0][1] * in1->m[0][1] + in1->m[0][2] * in1->m[0][2] + in1->m[1][0] * in1->m[1][0] + in1->m[1][1] * in1->m[1][1] + in1->m[1][2] * in1->m[1][2] + in1->m[2][0] * in1->m[2][0] + in1->m[2][1] * in1->m[2][1] + in1->m[2][2] * in1->m[2][2]); + scale *= scale; #endif // invert the rotation by transposing and multiplying by the squared -- 2.39.2