hedgewars/uLandObjects.pas
changeset 1097 06b15817b8a0
parent 1085 0b82870073b5
child 1131 c5b8f2bfa487
--- a/hedgewars/uLandObjects.pas	Fri Jul 25 19:06:46 2008 +0000
+++ b/hedgewars/uLandObjects.pas	Fri Jul 25 19:26:44 2008 +0000
@@ -26,7 +26,7 @@
 procedure BlitImageAndGenerateCollisionInfo(cpX, cpY: Longword; Image, Surface: PSDL_Surface);
 
 implementation
-uses uLand, uStore, uConsts, uMisc, uConsole, uRandom, uVisualGears, uFloat, GL;
+uses uLand, uStore, uConsts, uMisc, uConsole, uRandom, uVisualGears, uFloat, GL, uSound;
 const MaxRects = 256;
       MAXOBJECTRECTS = 16;
       MAXTHEMEOBJECTS = 32;
@@ -373,6 +373,9 @@
 glClearColor(c1.r / 255, c1.g / 255, c1.b / 255, 0.99); // sky color
 cExplosionBorderColor:= c2.value or $FF000000;
 
+ReadLn(f, s);
+if MusicFN = '' then MusicFN:= s;
+
 Readln(f, ThemeObjects.Count);
 for i:= 0 to Pred(ThemeObjects.Count) do
     begin