aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Screens
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-05-27 09:26:00 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-05-27 09:26:00 +0000
commit79bed9be3f06a0ce6026755fbe49bd7437bdf12e (patch)
tree9be95a0a59f8a40c3545c81c7c60122ee8131389 /Game/Code/Screens
parentc7e2eee2adb177669622a9ee99072ad2b746efe5 (diff)
downloadusdx-79bed9be3f06a0ce6026755fbe49bd7437bdf12e.tar.gz
usdx-79bed9be3f06a0ce6026755fbe49bd7437bdf12e.tar.xz
usdx-79bed9be3f06a0ce6026755fbe49bd7437bdf12e.zip
Added workaround for corrupted background Images
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@231 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/Screens/UScreenSing.pas13
1 files changed, 9 insertions, 4 deletions
diff --git a/Game/Code/Screens/UScreenSing.pas b/Game/Code/Screens/UScreenSing.pas
index ed79bb2f..2ba7522f 100644
--- a/Game/Code/Screens/UScreenSing.pas
+++ b/Game/Code/Screens/UScreenSing.pas
@@ -8,9 +8,9 @@ uses UMenu, UMusic, SDL, SysUtils, UFiles, UTime, USongs, UIni, ULog, USmpeg, UT
type
TScreenSing = class(TMenu)
protected
- paused: boolean; //Pause Mod
- PauseTime: Real;
- NumEmptySentences: integer;
+ paused: boolean; //Pause Mod
+ PauseTime: Real;
+ NumEmptySentences: integer;
public
//TextTime: integer;
@@ -356,7 +356,12 @@ begin
// set background
if (AktSong.Background <> '') and (AktSong.VideoLoaded = false) then
- Tex_Background := Texture.LoadTexture(AktSong.Path + AktSong.Background)
+ try
+ Tex_Background := Texture.LoadTexture(AktSong.Path + AktSong.Background);
+ except
+ log.LogError('Background could not be loaded: ' + AktSong.Path + AktSong.Background);
+ Tex_Background.TexNum := -1;
+ end
else
Tex_Background.TexNum := -1;