Revert accidentially committed repeatable debug behaviour for Chao Keys, and guard it behind a single #define

This commit is contained in:
toaster 2023-06-09 19:19:55 +01:00
parent e235f29dfe
commit 874e964225

View file

@ -8,6 +8,8 @@
#include "../r_skins.h"
#include "../s_sound.h"
//#define CHAOKEYDEBUG
menuitem_t MISC_ChallengesStatsDummyMenu[] =
{
{IT_STRING | IT_CALL, "Back", NULL, NULL, {.routine = M_GoBack}, 0, 0},
@ -373,7 +375,9 @@ void M_ChallengesTick(void)
if (challengesmenu.chaokeyhold > CHAOHOLD_MAX)
{
//gamedata->chaokeys--;
#ifndef CHAOKEYDEBUG
gamedata->chaokeys--;
#endif
challengesmenu.chaokeyhold = 0;
challengesmenu.unlockcount[CC_CHAOANIM]++;
@ -600,7 +604,7 @@ boolean M_ChallengesInputs(INT32 ch)
challengesmenu.unlockcount[CC_CHAONOPE] = 6;
S_StartSound(NULL, sfx_s3k7b); //sfx_s3kb2
#if 1 // debugging
#ifdef CHAOKEYDEBUG
if (challengesmenu.currentunlock < MAXUNLOCKABLES && challengesmenu.unlockanim >= UNLOCKTIME && gamedata->unlocked[challengesmenu.currentunlock] == true)
{
gamedata->unlocked[challengesmenu.currentunlock] = gamedata->unlockpending[challengesmenu.currentunlock] = false;