aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Classes/UFiles.pas
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-05-17 14:23:38 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-05-17 14:23:38 +0000
commit1858dadeadf071bbc3eb16ae835fc9bd95440eab (patch)
tree78cae393a0bbd2b2a7323c1ef1626fb7ed032b98 /Game/Code/Classes/UFiles.pas
parent8c035bb950519a86c90f64aab7c58aa98089569c (diff)
downloadusdx-1858dadeadf071bbc3eb16ae835fc9bd95440eab.tar.gz
usdx-1858dadeadf071bbc3eb16ae835fc9bd95440eab.tar.xz
usdx-1858dadeadf071bbc3eb16ae835fc9bd95440eab.zip
Video Tag will now only be read when the VideoFile exists.
-> Better usability of VideoIcon git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@214 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/Classes/UFiles.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/Game/Code/Classes/UFiles.pas b/Game/Code/Classes/UFiles.pas
index 912a476d..aa336233 100644
--- a/Game/Code/Classes/UFiles.pas
+++ b/Game/Code/Classes/UFiles.pas
@@ -239,7 +239,7 @@ begin
end
// Video File
- else if (Identifier = 'VIDEO') then
+ else if (Identifier = 'VIDEO') AND (FileExists(Song.Path + Value)) then
begin
Song.Video := Value;
end