From 81e7b2020dbdfa610cb499a0bc24affb17b241f0 Mon Sep 17 00:00:00 2001 From: TimeServ Date: Fri, 30 Sep 2005 03:12:01 +0000 Subject: [PATCH] crosshair position fix git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1403 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_draw.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/engine/gl/gl_draw.c b/engine/gl/gl_draw.c index dc4511ba8..c3b07ca32 100644 --- a/engine/gl/gl_draw.c +++ b/engine/gl/gl_draw.c @@ -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);