Add a few debug cvars for development purposes.

git-svn-id: https://svn.eduke32.com/eduke32@1702 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
plagman 2010-08-26 15:24:12 +00:00
parent 399a822fd7
commit 3d31f645fb
3 changed files with 12 additions and 0 deletions

View file

@ -284,6 +284,10 @@ extern char palfadedelta;
extern int32_t dommxoverlay, novoxmips;
#ifdef DEBUGGINGAIDS
extern float debug1, debug2;
#endif
#ifdef SUPERBUILD
extern int32_t tiletovox[MAXTILES];
extern int32_t usevoxels, voxscale[MAXVOXELS];

View file

@ -318,6 +318,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 },
#endif
#ifdef DEBUGGINGAIDS
{ "debug1","debug counter",(void *)&debug1, CVAR_FLOAT, -100000, 100000 },
{ "debug2","debug counter",(void *)&debug2, CVAR_FLOAT, -100000, 100000 },
#endif
};

View file

@ -44,6 +44,10 @@
#define CACHEAGETIME 16
#ifdef DEBUGGINGAIDS
float debug1, debug2;
#endif
#ifdef SUPERBUILD
void loadvoxel(int32_t voxindex) { voxindex=0; }
int32_t tiletovox[MAXTILES];