mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-10 23:32:06 +00:00
Angled crosshair
This commit is contained in:
parent
9ccb150073
commit
76965e1168
1 changed files with 8 additions and 3 deletions
|
@ -3046,7 +3046,12 @@ static void UI_DrawCrosshair(rectDef_t * rect, float scale, vec4_t color)
|
|||
uiInfo.currentCrosshair = 0;
|
||||
}
|
||||
//Makro - fixing bug that draws a crosshair even if cg_drawcrosshair is 0
|
||||
if (uiInfo.currentCrosshair != 0) {
|
||||
if (uiInfo.currentCrosshair != 0)
|
||||
{
|
||||
if (rect->hasVectors)
|
||||
UI_DrawAngledPic(rect->x, rect->y - rect->h, rect->w, rect->h, rect->u, rect->v, color,
|
||||
0.f, 0.f, 1.f, 1.f, uiInfo.uiDC.Assets.crosshairShader[uiInfo.currentCrosshair]);
|
||||
else
|
||||
UI_DrawHandlePic(rect->x, rect->y - rect->h, rect->w, rect->h,
|
||||
uiInfo.uiDC.Assets.crosshairShader[uiInfo.currentCrosshair]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue