mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-12 23:54:33 +00:00
Slight change in the crosshair code, minor cleanup really.
This commit is contained in:
parent
7e6d2f95c5
commit
51aa5518ae
1 changed files with 29 additions and 23 deletions
|
@ -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, '+');
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue