From ceda196bb89e55fc4163c932e92803c16916060b Mon Sep 17 00:00:00 2001 From: f1fth_freed0m Date: Sun, 9 Mar 2008 10:49:14 +0000 Subject: ZeroNotes are ignored now and a notice is written to error.log git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@942 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/Classes/USong.pas | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Game/Code') diff --git a/Game/Code/Classes/USong.pas b/Game/Code/Classes/USong.pas index 1196e995..65bd215a 100644 --- a/Game/Code/Classes/USong.pas +++ b/Game/Code/Classes/USong.pas @@ -247,6 +247,9 @@ begin Read(SongFile, Param3); Read(SongFile, ParamS); + //Check for ZeroNote + if Param2 = 0 then Log.LogError('Error: Found ZeroNote at "'+TempC+' '+IntToStr(Param1)+' '+IntToStr(Param2)+' '+IntToStr(Param3)+' '+ParamS+'" -> Note ignored!') else + begin // add notes if not Both then // P1 @@ -256,6 +259,7 @@ begin ParseNote(0, TempC, (Param1+Rel[0]) * Mult, Param2 * Mult, Param3, ParamS); ParseNote(1, TempC, (Param1+Rel[1]) * Mult, Param2 * Mult, Param3, ParamS); end; + end; //Zeronote check end; // if if TempC = '-' then @@ -311,7 +315,6 @@ begin //Total Notes Patch End end; end; - Read(SongFile, TempC); Inc(FileLineNo); end; // while} -- cgit v1.2.3