Added DEBUG_HIT option again.

This commit is contained in:
Florian Küpper committed 2013-12-22 17:53:51 +01:00
1 parent b6f412ba45
commit 2548c3a1f9
1 file changed
+5
+5
View File
@@ -210,6 +210,8 @@ namespace Vocaluxe.Base
public static void UpdatePoints(float time) public static void UpdatePoints(float time)
{ {
bool DEBUG_HIT = false;
CSong song = _SongQueue.GetSong(); CSong song = _SongQueue.GetSong();
if (song == null) if (song == null)
@@ -281,6 +283,9 @@ namespace Vocaluxe.Base
while (tonePlayer - tone < -6) while (tonePlayer - tone < -6)
tonePlayer += 12; tonePlayer += 12;
if (DEBUG_HIT)
tonePlayer = tone;
Players[p].NoteDiff = Math.Abs(tone - tonePlayer); Players[p].NoteDiff = Math.Abs(tone - tonePlayer);
bool hit = Players[p].NoteDiff <= (2 - (int)CProfiles.GetDifficulty(Players[p].ProfileID)); bool hit = Players[p].NoteDiff <= (2 - (int)CProfiles.GetDifficulty(Players[p].ProfileID));