fix the missing crosshair

This commit is contained in:
Bill Currie 2009-12-23 01:26:14 +00:00 committed by Jeff Teunissen
parent 28601c8ea4
commit 018a0b3bb6
3 changed files with 6 additions and 6 deletions

View file

@ -584,8 +584,8 @@ Draw_Crosshair (void)
if ((unsigned) ch >= sizeof (crosshair_func) / sizeof (crosshair_func[0])) if ((unsigned) ch >= sizeof (crosshair_func) / sizeof (crosshair_func[0]))
return; return;
x = scr_vrect.x + scr_vrect.width / 2 + cl_crossx->int_val; x = vid.conwidth / 2 + cl_crossx->int_val;
y = scr_vrect.y + scr_vrect.height / 2 + cl_crossy->int_val; y = vid.conheight / 2 + cl_crossy->int_val;
crosshair_func[ch] (x, y); crosshair_func[ch] (x, y);
} }

View file

@ -337,8 +337,8 @@ Draw_Crosshair (void)
if ((unsigned) ch >= sizeof (crosshair_func) / sizeof (crosshair_func[0])) if ((unsigned) ch >= sizeof (crosshair_func) / sizeof (crosshair_func[0]))
return; return;
x = scr_vrect.x + scr_vrect.width / 2 + cl_crossx->int_val; x = vid.conwidth / 2 + cl_crossx->int_val;
y = scr_vrect.y + scr_vrect.height / 2 + cl_crossy->int_val; y = vid.conheight / 2 + cl_crossy->int_val;
crosshair_func[ch] (x, y); crosshair_func[ch] (x, y);
} }

View file

@ -411,8 +411,8 @@ Draw_Crosshair (void)
if ((unsigned) ch >= sizeof (crosshair_func) / sizeof (crosshair_func[0])) if ((unsigned) ch >= sizeof (crosshair_func) / sizeof (crosshair_func[0]))
return; return;
x = scr_vrect.x + scr_vrect.width / 2 + cl_crossx->int_val; x = vid.conwidth / 2 + cl_crossx->int_val;
y = scr_vrect.y + scr_vrect.height / 2 + cl_crossy->int_val; y = vid.conheight / 2 + cl_crossy->int_val;
crosshair_func[ch] (x, y); crosshair_func[ch] (x, y);
} }