VITA/NX: Allow disabling of crosshair

This commit is contained in:
cypress 2023-10-15 16:08:05 -04:00 committed by GitHub
parent 2ecd4c5e04
commit 6fff93bd6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1538,7 +1538,7 @@ Draw_Crosshair
extern qboolean paused_hack; extern qboolean paused_hack;
void SCR_DrawCrosshair (void) void SCR_DrawCrosshair (void)
{ {
if (cl.stats[STAT_HEALTH] < 20 || paused_hack == true || m_state == m_exit) { if (paused_hack == true || m_state == m_exit) {
return; return;
} }
@ -1546,6 +1546,9 @@ void SCR_DrawCrosshair (void)
Draw_FillByColor(vid.width/2, 0, 1, vid.height, 255, 0, 0, 255); Draw_FillByColor(vid.width/2, 0, 1, vid.height, 255, 0, 0, 255);
Draw_FillByColor(0, vid.height/2, vid.width, 1, 0, 255, 0, 255); Draw_FillByColor(0, vid.height/2, vid.width, 1, 0, 255, 0, 255);
} }
if (!crosshair.value)
return;
float col; float col;