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];