fixed medley and short song highscore adding

This commit is contained in:
Alexander Eckart committed 2012-12-17 22:44:00 +01:00
1 parent 10b8d51e7d
commit 1422ddcee6
1 file changed
+7 -1
+7 -1
View File
@@ -310,11 +310,17 @@ namespace Vocaluxe.Base
{
if (Note == lines[Line].NoteCount - 1)
{
if (notes[Note].EndBeat == beat)
if (notes[Note].EndBeat == beat
|| (_GameMode.GetCurrentGameMode() == EGameMode.TR_GAMEMODE_MEDLEY && song.Medley.EndBeat == beat)
|| (_GameMode.GetCurrentGameMode() == EGameMode.TR_GAMEMODE_SHORTSONG && song.ShortEnd == beat))
_Player[p].SongFinished = true;
}
}
if ((_GameMode.GetCurrentGameMode() == EGameMode.TR_GAMEMODE_MEDLEY && song.Medley.EndBeat == beat) ||
(_GameMode.GetCurrentGameMode() == EGameMode.TR_GAMEMODE_SHORTSONG && song.ShortEnd == beat))
_Player[p].SongFinished = true;
if (notes[Note].PointsForBeat > 0 && (CSound.RecordToneValid(p) || DEBUG_HIT))
{
int Tone = notes[Note].Tone;