Slight change in the crosshair code, minor cleanup really.

This commit is contained in:
Zephaniah E. Hull 2000-08-31 17:36:02 +00:00
parent 7e6d2f95c5
commit 51aa5518ae

View file

@ -566,8 +566,16 @@ void Draw_Crosshair(void)
extern vrect_t scr_vrect;
unsigned char *pColor;
if (crosshair->value == 2)
{
switch ((int) crosshair->value) {
case 0:
break;
case 1:
default:
Draw_Character8 (
scr_vrect.x + scr_vrect.width/2-4 + cl_crossx->value,
scr_vrect.y + scr_vrect.height/2-4 + cl_crossy->value, '+');
break;
case 2:
x = scr_vrect.x + scr_vrect.width/2 - 3 + cl_crossx->value;
y = scr_vrect.y + scr_vrect.height/2 - 3 + cl_crossy->value;
@ -588,10 +596,8 @@ void Draw_Crosshair(void)
glTexCoord2f (0, 1);
glVertex2f (x - 4, y+12);
glEnd ();
break;
}
else if (crosshair->value)
Draw_Character8 (scr_vrect.x + scr_vrect.width/2-4 + cl_crossx->value,
scr_vrect.y + scr_vrect.height/2-4 + cl_crossy->value, '+');
}
/*