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
This commit is contained in:
Spoike 2005-01-28 04:20:50 +00:00
parent 9ecd5dc714
commit 0eb00928ba

View file

@ -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]);