From 70f566682fd89b1fba2365b4d694d177077a2f87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20K=C3=BCpper?= Date: Tue, 21 Jan 2014 19:19:04 +0100 Subject: [PATCH] Fix short-song-mode. --- VocaluxeLib/Songs/CSong.cs | 3 +++ VocaluxeLib/Songs/CSongLoader.cs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/VocaluxeLib/Songs/CSong.cs b/VocaluxeLib/Songs/CSong.cs index d2c393e8..53d2dde8 100644 --- a/VocaluxeLib/Songs/CSong.cs +++ b/VocaluxeLib/Songs/CSong.cs @@ -488,9 +488,11 @@ namespace VocaluxeLib.Songs if (stop < (voice.Lines[series[i].Start].FirstNoteBeat + ((voice.Lines[series[i].End].LastNoteBeat - voice.Lines[series[i].Start].FirstNoteBeat) / 2))) { ShortEnd.EndBeat = voice.Lines[series[i].Start - 1].LastNote.EndBeat; + ShortEnd.Source = EDataSource.Calculated; return; } ShortEnd.EndBeat = voice.Lines[series[i].End].LastNote.EndBeat; + ShortEnd.Source = EDataSource.Calculated; return; } } @@ -501,6 +503,7 @@ namespace VocaluxeLib.Songs if (line.FirstNoteBeat < stop && line.LastNoteBeat > stop) { ShortEnd.EndBeat = line.LastNoteBeat; + ShortEnd.Source = EDataSource.Calculated; return; } } diff --git a/VocaluxeLib/Songs/CSongLoader.cs b/VocaluxeLib/Songs/CSongLoader.cs index 4556b776..26e1dea1 100644 --- a/VocaluxeLib/Songs/CSongLoader.cs +++ b/VocaluxeLib/Songs/CSongLoader.cs @@ -309,7 +309,7 @@ namespace VocaluxeLib.Songs _Song.ShortEnd.Source = EDataSource.Tag; } else - _LogWarning("Invalid medleyendbeat"); + _LogWarning("Invalid shortendbeat"); } break; case "CALCMEDLEY":