Allow disabling of crosshair

This commit is contained in:
cypress 2023-10-15 16:08:13 -04:00 committed by GitHub
parent a05cf67b4b
commit 31d11bb075
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1075,7 +1075,7 @@ void Draw_Crosshair (void)
Draw_FillByColor(0, vid.height/2, 400, 1, 0, 255, 0, 255); Draw_FillByColor(0, vid.height/2, 400, 1, 0, 255, 0, 255);
} }
if (cl.stats[STAT_HEALTH] < 20) if (!crosshair.value)
return; return;
if (!crosshair_opacity) if (!crosshair_opacity)