From 1c85543bf1c6595533af20e682f48fe48977806a Mon Sep 17 00:00:00 2001 From: brunzelchen Date: Thu, 4 Mar 2010 18:48:28 +0000 Subject: added error number to error.log and empty lines between the entries; added check for note length<1 git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1 Challenge MOD@2172 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/Classes/UFiles.pas | 8 ++++++++ Game/Code/Classes/ULog.pas | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'Game') diff --git a/Game/Code/Classes/UFiles.pas b/Game/Code/Classes/UFiles.pas index 1af6e3a8..c2ec467f 100644 --- a/Game/Code/Classes/UFiles.pas +++ b/Game/Code/Classes/UFiles.pas @@ -699,6 +699,14 @@ begin end; bt := Czesci[p].Czesc[line].Nuta[note].Start; + if (Czesci[p].Czesc[line].Nuta[note].Dlugosc<1) then + begin + Log.LogError('Note length <1 in sentence ' + IntToStr(line+1) + ', on beat ' + IntToStr(Czesci[p].Czesc[line].Nuta[note].Start) + + ' in song ' + AktSong.Path + AktSong.Filename); + if (Ini.LoadFaultySongs=0) then + Result := false; + end; + if (note