mirror of
https://github.com/nzp-team/glquake.git
synced 2024-11-10 06:31:35 +00:00
Add cl_crosshair_debug
This commit is contained in:
parent
3aaf8aa9dc
commit
3f413368e0
3 changed files with 10 additions and 2 deletions
|
@ -1033,8 +1033,14 @@ Draw_Crosshair
|
|||
*/
|
||||
|
||||
extern float crosshair_opacity;
|
||||
extern cvar_t cl_crosshair_debug;
|
||||
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)
|
||||
return;
|
||||
|
||||
|
|
|
@ -93,6 +93,7 @@ cvar_t scr_printspeed = {"scr_printspeed","8"};
|
|||
cvar_t scr_showfps = {"scr_showfps", "0"};
|
||||
cvar_t scr_loadscreen = {"scr_loadscreen","1"};
|
||||
cvar_t gl_triplebuffer = {"gl_triplebuffer", "1", true };
|
||||
cvar_t cl_crosshair_debug = {"cl_crosshair_debug", "0", true};
|
||||
|
||||
extern cvar_t crosshair;
|
||||
|
||||
|
@ -685,6 +686,7 @@ void SCR_Init (void)
|
|||
Cvar_RegisterVariable (&scr_printspeed);
|
||||
Cvar_RegisterVariable (&scr_showfps);
|
||||
Cvar_RegisterVariable (&scr_loadscreen);
|
||||
Cvar_RegisterVariable (&cl_crosshair_debug);
|
||||
|
||||
Cvar_RegisterVariable (&gl_triplebuffer);
|
||||
|
||||
|
|
|
@ -303,8 +303,8 @@ int main (int argc, char **argv)
|
|||
CFGU_GetSystemModel(&model);
|
||||
cfguExit();
|
||||
|
||||
if(model != CFG_MODEL_2DS)
|
||||
gfxSetWide(true);
|
||||
//if(model != CFG_MODEL_2DS)
|
||||
// gfxSetWide(true);
|
||||
|
||||
chdir("sdmc:/3ds/nzportable");
|
||||
|
||||
|
|
Loading…
Reference in a new issue