mirror of
https://github.com/DrBeef/Quake2Quest.git
synced 2025-03-01 14:40:52 +00:00
HUD
This commit is contained in:
parent
3bcafe27ca
commit
812e4c2c78
2 changed files with 3 additions and 9 deletions
|
@ -988,8 +988,8 @@ void SCR_ExecuteLayoutString (char *s,float separation)
|
||||||
y = 0;
|
y = 0;
|
||||||
width = 3;
|
width = 3;
|
||||||
|
|
||||||
int offset_stereo=0;
|
int offset_stereo= (separation>0) ? -25 : 25;
|
||||||
if (separation>0)offset_stereo=viddef.width;
|
//if (separation>0)offset_stereo=viddef.width;
|
||||||
//offset_stereo=100;
|
//offset_stereo=100;
|
||||||
|
|
||||||
while (s)
|
while (s)
|
||||||
|
@ -1023,7 +1023,7 @@ void SCR_ExecuteLayoutString (char *s,float separation)
|
||||||
if (!strcmp(token, "yb"))
|
if (!strcmp(token, "yb"))
|
||||||
{
|
{
|
||||||
token = COM_Parse (&s);
|
token = COM_Parse (&s);
|
||||||
y = viddef.height + atoi(token);
|
y = (viddef.height * 0.72) + atoi(token);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!strcmp(token, "yv"))
|
if (!strcmp(token, "yv"))
|
||||||
|
|
|
@ -502,12 +502,6 @@ void SCR_DrawCrosshair (float separation)
|
||||||
, 0.75 + 0.25*sin(anglemod(cl.time*0.005)) //alpha
|
, 0.75 + 0.25*sin(anglemod(cl.time*0.005)) //alpha
|
||||||
, crosshair_pic); //pic
|
, crosshair_pic); //pic
|
||||||
#else
|
#else
|
||||||
if (separation>0){
|
|
||||||
re.DrawPic (scr_vrect.x+scr_vrect.width + ((scr_vrect.width - crosshair_width)>>1)
|
|
||||||
, scr_vrect.y + ((scr_vrect.height - crosshair_height)>>1), crosshair_pic);
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
re.DrawPic (scr_vrect.x + ((scr_vrect.width - crosshair_width)>>1)
|
re.DrawPic (scr_vrect.x + ((scr_vrect.width - crosshair_width)>>1)
|
||||||
, scr_vrect.y + ((scr_vrect.height - crosshair_height)>>1), crosshair_pic);
|
, scr_vrect.y + ((scr_vrect.height - crosshair_height)>>1), crosshair_pic);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue