From 0eb00928baa454651a30619c3923485227e0a75c Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 28 Jan 2005 04:20:50 +0000 Subject: [PATCH] Small fix so it uses the correct maths... git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@841 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_screen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/client/cl_screen.c b/engine/client/cl_screen.c index 09678b1e9..f238a162e 100644 --- a/engine/client/cl_screen.c +++ b/engine/client/cl_screen.c @@ -807,6 +807,7 @@ void SCR_CrosshairPosition(int pnum, int *x, int *y) memset(&tr, 0, sizeof(tr)); tr.fraction = 1; cl.worldmodel->hulls->funcs.RecursiveHullCheck (cl.worldmodel->hulls, 0, 0, 1, start, end, &tr); + start[2]-=16; if (tr.fraction == 1) { *x = rect.x + rect.width/2 + cl_crossx.value; @@ -822,7 +823,8 @@ void SCR_CrosshairPosition(int pnum, int *x, int *y) adj+=4; else adj+=v_viewheight.value; - start[2]+=adj/4; + + start[2]+=adj; ML_Project(tr.endpos, end, cl.simangles[pnum], start, (float)rect.width/rect.height, r_refdef.fov_y); *x = rect.x+rect.width*end[0]; *y = rect.y+rect.height*(1-end[1]);