From 6139416dea7e6501cfcca1452e4ebc7dd3e46e89 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 4 Nov 2017 02:52:29 +0000 Subject: [PATCH] Fix xonotic crosshair position. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5160 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/pr_csqc.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/engine/client/pr_csqc.c b/engine/client/pr_csqc.c index 7431945c0..4a6eb6d3b 100644 --- a/engine/client/pr_csqc.c +++ b/engine/client/pr_csqc.c @@ -1741,12 +1741,6 @@ static void QCBUILTIN PF_cs_project (pubprogfuncs_t *prinst, struct globalvars_s out[0] = out[0]*r_refdef.vrect.width + r_refdef.vrect.x; out[1] = out[1]*r_refdef.vrect.height + r_refdef.vrect.y; - if (csqc_isdarkplaces) - { - out[0] *= (float)vid.pixelwidth / vid.width; - out[1] *= (float)vid.pixelheight / vid.height; - } - if (tempv[3] < 0) out[2] *= -1; } @@ -1763,12 +1757,6 @@ static void QCBUILTIN PF_cs_unproject (pubprogfuncs_t *prinst, struct globalvars float v[4], tempv[4]; - if (csqc_isdarkplaces) - { - tx *= (float)vid.width / vid.pixelwidth; - ty *= (float)vid.height / vid.pixelheight; - } - tx = ((tx-r_refdef.vrect.x)/r_refdef.vrect.width); ty = ((ty-r_refdef.vrect.y)/r_refdef.vrect.height); ty = 1-ty;