From 5c74bc6f56855eb3ca59691d963997f5ef41f3b7 Mon Sep 17 00:00:00 2001 From: terminx Date: Mon, 31 Dec 2012 01:50:45 +0000 Subject: [PATCH] Surround "debug1" and "debug2" with #ifdef DEBUGGINGAIDS git-svn-id: https://svn.eduke32.com/eduke32@3349 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/include/build.h | 2 ++ polymer/eduke32/build/src/baselayer.c | 2 ++ polymer/eduke32/build/src/engine.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/polymer/eduke32/build/include/build.h b/polymer/eduke32/build/include/build.h index 33136a379..6479f348e 100644 --- a/polymer/eduke32/build/include/build.h +++ b/polymer/eduke32/build/include/build.h @@ -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]; diff --git a/polymer/eduke32/build/src/baselayer.c b/polymer/eduke32/build/src/baselayer.c index effc3cc96..2fb51958e 100644 --- a/polymer/eduke32/build/src/baselayer.c +++ b/polymer/eduke32/build/src/baselayer.c @@ -390,8 +390,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 }, +#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