mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
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:
parent
9ecd5dc714
commit
0eb00928ba
1 changed files with 3 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue