diff options
author | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-06-25 16:44:07 +0000 |
---|---|---|
committer | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-06-25 16:44:07 +0000 |
commit | 139918027ecdd4a1b149722eea7b578579b993f1 (patch) | |
tree | 4e2cdea610ee14351bb9837a2d02eac13e1476dc /Game/Code/Classes | |
parent | 26173c50974c12b7ca6c9302efe6bd32c555df30 (diff) | |
download | usdx-139918027ecdd4a1b149722eea7b578579b993f1.tar.gz usdx-139918027ecdd4a1b149722eea7b578579b993f1.tar.xz usdx-139918027ecdd4a1b149722eea7b578579b993f1.zip |
Fixed a Bug in Editor.
When a Song with Cover was edited and after a song without was loaded and saved, the cover from the first song was written to the second song
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@269 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Classes')
-rw-r--r-- | Game/Code/Classes/UFiles.pas | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Game/Code/Classes/UFiles.pas b/Game/Code/Classes/UFiles.pas index 5214a9b3..e6982a1a 100644 --- a/Game/Code/Classes/UFiles.pas +++ b/Game/Code/Classes/UFiles.pas @@ -116,6 +116,7 @@ begin //Additional Information
Song.Background := '';
+ Song.Cover := '';
Song.Video := '';
Song.VideoGAP := 0;
Song.NotesGAP := 0;
@@ -734,10 +735,10 @@ begin if Song.Edition <> 'Unknown' then WriteLn(SongFile, '#EDITION:' + Song.Edition);
if Song.Genre <> 'Unknown' then WriteLn(SongFile, '#GENRE:' + Song.Genre);
if Song.Language <> 'Unknown' then WriteLn(SongFile, '#LANGUAGE:' + Song.Language);
- if Song.Cover <> '' then WriteLn(SongFile, '#COVER:' + Song.Cover);
WriteLn(SongFile, '#MP3:' + Song.Mp3);
+ if Song.Cover <> '' then WriteLn(SongFile, '#COVER:' + Song.Cover);
if Song.Background <> '' then WriteLn(SongFile, '#BACKGROUND:' + Song.Background);
if Song.Video <> '' then WriteLn(SongFile, '#VIDEO:' + Song.Video);
if Song.VideoGAP <> 0 then WriteLn(SongFile, '#VIDEOGAP:' + FloatToStr(Song.VideoGAP));
|