Add cl_crosshair_debug

This commit is contained in:
cypress 2023-07-22 12:52:51 -04:00
parent 3aaf8aa9dc
commit 3f413368e0
3 changed files with 10 additions and 2 deletions

View file

@ -1033,8 +1033,14 @@ Draw_Crosshair
*/ */
extern float crosshair_opacity; extern float crosshair_opacity;
extern cvar_t cl_crosshair_debug;
void Draw_Crosshair (void) void Draw_Crosshair (void)
{ {
if (cl_crosshair_debug.value) {
Draw_FillByColor(vid.width/2, 0, 1, 240, 255, 0, 0, 255);
Draw_FillByColor(0, vid.height/2, 400, 1, 0, 255, 0, 255);
}
if (cl.stats[STAT_HEALTH] < 20) if (cl.stats[STAT_HEALTH] < 20)
return; return;

View file

@ -93,6 +93,7 @@ cvar_t scr_printspeed = {"scr_printspeed","8"};
cvar_t scr_showfps = {"scr_showfps", "0"}; cvar_t scr_showfps = {"scr_showfps", "0"};
cvar_t scr_loadscreen = {"scr_loadscreen","1"}; cvar_t scr_loadscreen = {"scr_loadscreen","1"};
cvar_t gl_triplebuffer = {"gl_triplebuffer", "1", true }; cvar_t gl_triplebuffer = {"gl_triplebuffer", "1", true };
cvar_t cl_crosshair_debug = {"cl_crosshair_debug", "0", true};
extern cvar_t crosshair; extern cvar_t crosshair;
@ -685,6 +686,7 @@ void SCR_Init (void)
Cvar_RegisterVariable (&scr_printspeed); Cvar_RegisterVariable (&scr_printspeed);
Cvar_RegisterVariable (&scr_showfps); Cvar_RegisterVariable (&scr_showfps);
Cvar_RegisterVariable (&scr_loadscreen); Cvar_RegisterVariable (&scr_loadscreen);
Cvar_RegisterVariable (&cl_crosshair_debug);
Cvar_RegisterVariable (&gl_triplebuffer); Cvar_RegisterVariable (&gl_triplebuffer);

View file

@ -303,8 +303,8 @@ int main (int argc, char **argv)
CFGU_GetSystemModel(&model); CFGU_GetSystemModel(&model);
cfguExit(); cfguExit();
if(model != CFG_MODEL_2DS) //if(model != CFG_MODEL_2DS)
gfxSetWide(true); // gfxSetWide(true);
chdir("sdmc:/3ds/nzportable"); chdir("sdmc:/3ds/nzportable");