]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
parentheses error in cs_unproject
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 8 Jun 2009 15:58:00 +0000 (15:58 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 8 Jun 2009 15:58:00 +0000 (15:58 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9011 d7cf8633-e32d-0410-b094-e92efae38249

clvm_cmds.c

index a8028c33c572f042d89ce6fee6b0af84cf2dc0b0..5af7205ce4d6a9f9e38897bc7ac4c919df3ef24a 100644 (file)
@@ -941,7 +941,7 @@ static void VM_CL_unproject (void)
        f = PRVM_G_VECTOR(OFS_PARM0);
        if(v_flipped.integer)
                f[0] = r_refdef.view.x + r_refdef.view.width - f[0];
-       VectorSet(temp, f[2], (-1.0 + 2.0 * (f[0] - r_refdef.view.x)) / r_refdef.view.width * f[2] * -r_refdef.view.frustum_x, (-1.0 + 2.0 * (f[1] - r_refdef.view.y))  / r_refdef.view.height * f[2] * -r_refdef.view.frustum_y);
+       VectorSet(temp, f[2], (-1.0 + 2.0 * (f[0] - r_refdef.view.x) / r_refdef.view.width) * f[2] * -r_refdef.view.frustum_x, (-1.0 + 2.0 * (f[1] - r_refdef.view.y) / r_refdef.view.height) * f[2] * -r_refdef.view.frustum_y);
        Matrix4x4_Transform(&r_refdef.view.matrix, temp, PRVM_G_VECTOR(OFS_RETURN));
 }