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,9 +3046,14 @@ static void UI_DrawCrosshair(rectDef_t * rect, float scale, vec4_t color)
|
||||||
uiInfo.currentCrosshair = 0;
|
uiInfo.currentCrosshair = 0;
|
||||||
}
|
}
|
||||||
//Makro - fixing bug that draws a crosshair even if cg_drawcrosshair is 0
|
//Makro - fixing bug that draws a crosshair even if cg_drawcrosshair is 0
|
||||||
if (uiInfo.currentCrosshair != 0) {
|
if (uiInfo.currentCrosshair != 0)
|
||||||
UI_DrawHandlePic(rect->x, rect->y - rect->h, rect->w, rect->h,
|
{
|
||||||
uiInfo.uiDC.Assets.crosshairShader[uiInfo.currentCrosshair]);
|
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]);
|
||||||
}
|
}
|
||||||
trap_R_SetColor(NULL);
|
trap_R_SetColor(NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue