From 9e816216a5eaafa55f177d8fe04ce90e7f696e12 Mon Sep 17 00:00:00 2001 From: toaster Date: Sat, 24 Jun 2023 15:03:17 +0100 Subject: [PATCH] In DEVELOP builds, you can force a particular evaluation by setting cv_soundtest to the numerical equivalent of the evaluationtype_t you're looking for Replaces the previously uncommited recompilation-based hacks the author of this commit was using to test the previous ones on this branch - 1 is Nothing - 2 is Chaos Emerald - 3 is Super Emerald - 4 is Perfect - 5, 6, 7, etc currently repeat --- src/f_finale.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/f_finale.c b/src/f_finale.c index 91a5d8958..f5436546e 100644 --- a/src/f_finale.c +++ b/src/f_finale.c @@ -890,7 +890,8 @@ typedef enum EVAL_NOTHING, EVAL_CHAOS, EVAL_SUPER, - EVAL_PERFECT + EVAL_PERFECT, + EVAL_MAX } evaluationtype_t; static evaluationtype_t evaluationtype; @@ -899,7 +900,12 @@ UINT16 finaleemeralds = 0; void F_StartGameEvaluation(void) { // Credits option in extras menu - if (grandprixinfo.gp == false) + if ( + grandprixinfo.gp == false +#ifdef DEVELOP + && cv_soundtest.value == 0 +#endif + ) { S_FadeMusic(0, MUSICRATE/4); F_StartGameEnd(); @@ -925,6 +931,11 @@ void F_StartGameEvaluation(void) finaleemeralds = M_CheckCupEmeralds(difficulty); +#ifdef DEVELOP + if (cv_soundtest.value != 0) + evaluationtype = (cv_soundtest.value-1) % EVAL_MAX; + else +#endif if (difficulty == KARTSPEED_EASY) evaluationtype = EVAL_NOTHING; else if (!ALLCHAOSEMERALDS(finaleemeralds))