From 9560b24a7970f4945c76eaa91107d0480189ef68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20K=C3=BCpper?= Date: Tue, 26 Dec 2017 15:51:23 +0100 Subject: [PATCH] Added another debug flag for let player 1 win --- Vocaluxe/Base/CGame.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Vocaluxe/Base/CGame.cs b/Vocaluxe/Base/CGame.cs index baddbf11..a90b062a 100644 --- a/Vocaluxe/Base/CGame.cs +++ b/Vocaluxe/Base/CGame.cs @@ -17,6 +17,8 @@ //Uncomment to make the engine hit every note //#define DEBUG_HIT +//Uncomment to only hit notes for player one +//#define DEBUG_HIT_1 using System; using System.Collections.Generic; @@ -280,6 +282,8 @@ namespace Vocaluxe.Base if (notes[note].PointsForBeat > 0 && (CRecord.ToneValid(p) #if DEBUG_HIT || true +#elif DEBUG_HIT_1 + || (true && p == 0) #endif )) { @@ -294,6 +298,8 @@ namespace Vocaluxe.Base #if DEBUG_HIT tonePlayer = tone; +#elif DEBUG_HIT_1 + if(p == 0) tonePlayer = tone; #endif Players[p].NoteDiff = Math.Abs(tone - tonePlayer);