]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Fixed a bug in Matrix4x4_CopyTranslateOnly... which is never called. Oh well.
authorsajt <sajt@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 28 Jun 2006 08:11:31 +0000 (08:11 +0000)
committersajt <sajt@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 28 Jun 2006 08:11:31 +0000 (08:11 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6488 d7cf8633-e32d-0410-b094-e92efae38249

matrixlib.c

index 210adbab4217307a0cb469bffe7e94e425df8da6..26283a3693c988240746b4abd8ec68b72cfb8149 100644 (file)
@@ -39,17 +39,17 @@ void Matrix4x4_CopyRotateOnly (matrix4x4_t *out, const matrix4x4_t *in)
 
 void Matrix4x4_CopyTranslateOnly (matrix4x4_t *out, const matrix4x4_t *in)
 {
-       out->m[0][0] = 0.0f;
+       out->m[0][0] = 1.0f;
        out->m[0][1] = 0.0f;
        out->m[0][2] = 0.0f;
        out->m[0][3] = in->m[0][3];
        out->m[1][0] = 0.0f;
-       out->m[1][1] = 0.0f;
+       out->m[1][1] = 1.0f;
        out->m[1][2] = 0.0f;
        out->m[1][3] = in->m[1][3];
        out->m[2][0] = 0.0f;
        out->m[2][1] = 0.0f;
-       out->m[2][2] = 0.0f;
+       out->m[2][2] = 1.0f;
        out->m[2][3] = in->m[2][3];
        out->m[3][0] = 0.0f;
        out->m[3][1] = 0.0f;