From 3d31f645fb50ffcca15c02059dc443163b438ede Mon Sep 17 00:00:00 2001 From: plagman Date: Thu, 26 Aug 2010 15:24:12 +0000 Subject: [PATCH] Add a few debug cvars for development purposes. git-svn-id: https://svn.eduke32.com/eduke32@1702 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/include/build.h | 4 ++++ polymer/eduke32/build/src/baselayer.c | 4 ++++ polymer/eduke32/build/src/engine.c | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/polymer/eduke32/build/include/build.h b/polymer/eduke32/build/include/build.h index e3f989bf9..1d1678757 100644 --- a/polymer/eduke32/build/include/build.h +++ b/polymer/eduke32/build/include/build.h @@ -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]; diff --git a/polymer/eduke32/build/src/baselayer.c b/polymer/eduke32/build/src/baselayer.c index da7134fae..3570caab0 100644 --- a/polymer/eduke32/build/src/baselayer.c +++ b/polymer/eduke32/build/src/baselayer.c @@ -318,6 +318,10 @@ int32_t baselayer_init(void) { "vid_gamma","vid_gamma : adjusts gamma ramp",(void *)&vid_gamma, CVAR_DOUBLE|CVAR_FUNCPTR, 0, 10 }, { "vid_contrast","vid_contrast : adjusts gamma ramp",(void *)&vid_contrast, CVAR_DOUBLE|CVAR_FUNCPTR, 0, 10 }, { "vid_brightness","vid_brightness : 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 }; diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index adb522ed6..0daa2d581 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -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];