mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Revert accidentially committed repeatable debug behaviour for Chao Keys, and guard it behind a single #define
This commit is contained in:
parent
e235f29dfe
commit
874e964225
1 changed files with 6 additions and 2 deletions
|
|
@ -8,6 +8,8 @@
|
||||||
#include "../r_skins.h"
|
#include "../r_skins.h"
|
||||||
#include "../s_sound.h"
|
#include "../s_sound.h"
|
||||||
|
|
||||||
|
//#define CHAOKEYDEBUG
|
||||||
|
|
||||||
menuitem_t MISC_ChallengesStatsDummyMenu[] =
|
menuitem_t MISC_ChallengesStatsDummyMenu[] =
|
||||||
{
|
{
|
||||||
{IT_STRING | IT_CALL, "Back", NULL, NULL, {.routine = M_GoBack}, 0, 0},
|
{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)
|
if (challengesmenu.chaokeyhold > CHAOHOLD_MAX)
|
||||||
{
|
{
|
||||||
//gamedata->chaokeys--;
|
#ifndef CHAOKEYDEBUG
|
||||||
|
gamedata->chaokeys--;
|
||||||
|
#endif
|
||||||
challengesmenu.chaokeyhold = 0;
|
challengesmenu.chaokeyhold = 0;
|
||||||
challengesmenu.unlockcount[CC_CHAOANIM]++;
|
challengesmenu.unlockcount[CC_CHAOANIM]++;
|
||||||
|
|
||||||
|
|
@ -600,7 +604,7 @@ boolean M_ChallengesInputs(INT32 ch)
|
||||||
challengesmenu.unlockcount[CC_CHAONOPE] = 6;
|
challengesmenu.unlockcount[CC_CHAONOPE] = 6;
|
||||||
S_StartSound(NULL, sfx_s3k7b); //sfx_s3kb2
|
S_StartSound(NULL, sfx_s3k7b); //sfx_s3kb2
|
||||||
|
|
||||||
#if 1 // debugging
|
#ifdef CHAOKEYDEBUG
|
||||||
if (challengesmenu.currentunlock < MAXUNLOCKABLES && challengesmenu.unlockanim >= UNLOCKTIME && gamedata->unlocked[challengesmenu.currentunlock] == true)
|
if (challengesmenu.currentunlock < MAXUNLOCKABLES && challengesmenu.unlockanim >= UNLOCKTIME && gamedata->unlocked[challengesmenu.currentunlock] == true)
|
||||||
{
|
{
|
||||||
gamedata->unlocked[challengesmenu.currentunlock] = gamedata->unlockpending[challengesmenu.currentunlock] = false;
|
gamedata->unlocked[challengesmenu.currentunlock] = gamedata->unlockpending[challengesmenu.currentunlock] = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue