aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Classes
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-06-25 16:44:07 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-06-25 16:44:07 +0000
commit139918027ecdd4a1b149722eea7b578579b993f1 (patch)
tree4e2cdea610ee14351bb9837a2d02eac13e1476dc /Game/Code/Classes
parent26173c50974c12b7ca6c9302efe6bd32c555df30 (diff)
downloadusdx-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 '')
-rw-r--r--Game/Code/Classes/UFiles.pas3
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));