Surround "debug1" and "debug2" with #ifdef DEBUGGINGAIDS

git-svn-id: https://svn.eduke32.com/eduke32@3349 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2012-12-31 01:50:45 +00:00
parent 53756fb79f
commit 5c74bc6f56
3 changed files with 6 additions and 0 deletions

View file

@ -560,7 +560,9 @@ extern char palfadedelta;
extern int32_t novoxmips;
#ifdef DEBUGGINGAIDS
extern float debug1, debug2;
#endif
extern int16_t tiletovox[MAXTILES];
extern int32_t usevoxels, voxscale[MAXVOXELS];

View file

@ -390,8 +390,10 @@ int32_t baselayer_init(void)
{ "vid_gamma","vid_gamma <gamma>: adjusts gamma ramp",(void *) &vid_gamma, CVAR_DOUBLE|CVAR_FUNCPTR, 0, 10 },
{ "vid_contrast","vid_contrast <gamma>: adjusts gamma ramp",(void *) &vid_contrast, CVAR_DOUBLE|CVAR_FUNCPTR, 0, 10 },
{ "vid_brightness","vid_brightness <gamma>: adjusts gamma ramp",(void *) &vid_brightness, CVAR_DOUBLE|CVAR_FUNCPTR, 0, 10 },
#ifdef DEBUGGINGAIDS
{ "debug1","debug counter",(void *) &debug1, CVAR_FLOAT, -100000, 100000 },
{ "debug2","debug counter",(void *) &debug2, CVAR_FLOAT, -100000, 100000 },
#endif
};
for (i=0; i<sizeof(cvars_engine)/sizeof(cvars_engine[0]); i++)

View file

@ -62,7 +62,9 @@ const int32_t engine_v8 = 1;
const int32_t engine_v8 = 0;
#endif
#ifdef DEBUGGINGAIDS
float debug1, debug2;
#endif
static void drawpixel_safe(void *s, char a)
{