diff options
author | f1fth_freed0m <f1fth_freed0m@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-03-09 10:49:14 +0000 |
---|---|---|
committer | f1fth_freed0m <f1fth_freed0m@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-03-09 10:49:14 +0000 |
commit | ceda196bb89e55fc4163c932e92803c16916060b (patch) | |
tree | b2420798ab560ad49d4cdddf21b02ec8093250e1 /Game/Code | |
parent | 83bd23c8f9bc46fb2d74c4e9cdc29fcc6b282e1a (diff) | |
download | usdx-ceda196bb89e55fc4163c932e92803c16916060b.tar.gz usdx-ceda196bb89e55fc4163c932e92803c16916060b.tar.xz usdx-ceda196bb89e55fc4163c932e92803c16916060b.zip |
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
Diffstat (limited to '')
-rw-r--r-- | Game/Code/Classes/USong.pas | 5 |
1 files changed, 4 insertions, 1 deletions
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}
|