crosshair position fix

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1403 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2005-09-30 03:12:01 +00:00
parent 11fa1bfbef
commit 81e7b2020d

View file

@ -1401,10 +1401,11 @@ void GLDraw_Crosshair(void)
SCR_CrosshairPosition(sc, &x, &y);
size = crosshairsize.value;
x1 = x - size;
x2 = x + size;
y1 = y - size;
y2 = y + size;
// (size / 16) is needed to assure it's exactly centered
x1 = x - size - (size / 16);
x2 = x + size - (size / 16);
y1 = y - size - (size / 16);
y2 = y + size - (size / 16);
qglBegin (GL_QUADS);
qglTexCoord2f (0, 0);
qglVertex2f (x1, y1);