ref: 3033fafd257e3dff9a8c6621076c6dc15849bafc
parent: 8d166d9c9d6e4a558ac77a4e9996bc2391a03d29
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Thu Dec 28 20:04:19 EST 2023
add "crosshair_shape" cvar: 0 is default cross, anything else is a dot
--- a/view.c
+++ b/view.c
@@ -38,6 +38,7 @@
static cvar_t v_idlescale = {"v_idlescale", "0", false};
static cvar_t crosshair = {"crosshair", "1", true};
+static cvar_t crosshair_shape = {"crosshair_shape", "0", true};
static cvar_t cl_crossx = {"cl_crossx", "0", false};
static cvar_t cl_crossy = {"cl_crossy", "0", false};
@@ -885,8 +886,10 @@
}
if (crosshair.value)
- Draw_Character (scr_vrect.x + scr_vrect.width/2 + cl_crossx.value,
- scr_vrect.y + scr_vrect.height/2 + cl_crossy.value, '+');
+ Draw_Character(
+ scr_vrect.x + scr_vrect.width/2 + cl_crossx.value,
+ scr_vrect.y + scr_vrect.height/2 + cl_crossy.value,
+ crosshair_shape.value < 1 ? '+' : '\xf');
}
//============================================================================
@@ -917,6 +920,7 @@
Cvar_RegisterVariable (&v_idlescale);
Cvar_RegisterVariable (&crosshair);
+ Cvar_RegisterVariable (&crosshair_shape);
Cvar_RegisterVariable (&cl_crossx);
Cvar_RegisterVariable (&cl_crossy);