Added another debug flag for let player 1 win

This commit is contained in:
Florian Küpper committed 2017-12-26 15:51:23 +01:00
1 parent 80f7cd1dfe
commit 9560b24a79
1 file changed
+6
+6
View File
@@ -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);