Added another debug flag for let player 1 win
This commit is contained in:
1 parent
80f7cd1dfe
commit
9560b24a79
1 file changed
+6
@@ -17,6 +17,8 @@
|
|||||||
|
|
||||||
//Uncomment to make the engine hit every note
|
//Uncomment to make the engine hit every note
|
||||||
//#define DEBUG_HIT
|
//#define DEBUG_HIT
|
||||||
|
//Uncomment to only hit notes for player one
|
||||||
|
//#define DEBUG_HIT_1
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
@@ -280,6 +282,8 @@ namespace Vocaluxe.Base
|
|||||||
if (notes[note].PointsForBeat > 0 && (CRecord.ToneValid(p)
|
if (notes[note].PointsForBeat > 0 && (CRecord.ToneValid(p)
|
||||||
#if DEBUG_HIT
|
#if DEBUG_HIT
|
||||||
|| true
|
|| true
|
||||||
|
#elif DEBUG_HIT_1
|
||||||
|
|| (true && p == 0)
|
||||||
#endif
|
#endif
|
||||||
))
|
))
|
||||||
{
|
{
|
||||||
@@ -294,6 +298,8 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
#if DEBUG_HIT
|
#if DEBUG_HIT
|
||||||
tonePlayer = tone;
|
tonePlayer = tone;
|
||||||
|
#elif DEBUG_HIT_1
|
||||||
|
if(p == 0) tonePlayer = tone;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Players[p].NoteDiff = Math.Abs(tone - tonePlayer);
|
Players[p].NoteDiff = Math.Abs(tone - tonePlayer);
|
||||||
|
|||||||
Reference in new issue
Block a user