Bugfix: No perfect line flares

This commit is contained in:
Alexander Eckart authored and Florian Küpper committed 2013-12-26 13:04:40 +01:00
1 parent f745298fcb
commit 22e1896f4b
3 files changed
+7 -3

No files matched your search

+4 -1
View File
@@ -210,6 +210,8 @@ namespace Vocaluxe.Base
public static void UpdatePoints(float time)
{
bool DEBUG_HIT = false;
CSong song = _SongQueue.GetSong();
if (song == null)
@@ -270,10 +272,11 @@ namespace Vocaluxe.Base
if (line == lines.Length - 1 && beat == lines[line].LastNoteBeat)
Players[p].SongFinished = true;
if (notes[note].PointsForBeat > 0 && CSound.RecordToneValid(p))
if (notes[note].PointsForBeat > 0 && (CSound.RecordToneValid(p) || DEBUG_HIT))
{
int tone = notes[note].Tone;
int tonePlayer = CSound.RecordGetTone(p);
if (DEBUG_HIT) tonePlayer = tone;
while (tonePlayer - tone > 6)
tonePlayer -= 12;
+2 -2
View File
@@ -392,10 +392,10 @@ namespace VocaluxeLib.Menu.SingNotes
_AddFlare(re, n);
}
if (note.Perfect && note.EndBeat < CBase.Game.GetRecordedBeat())
if (note.Perfect && !note.PerfectDrawn && note.EndBeat < CBase.Game.GetRecordedBeat())
{
_AddPerfectNote(rect, n);
note.Perfect = false;
note.PerfectDrawn = true;
}
}
+1
View File
@@ -57,6 +57,7 @@ namespace VocaluxeLib.Songs
public CSongNote HitNote { get; private set; }
// for drawing perfect note effect
public bool Perfect { get; set; }
public bool PerfectDrawn { get; set; }
#endregion
#region Methods