|
|
@ -1,4 +1,4 @@
|
|
|
|
/* $Id: sound.c,v 1.1 2003/05/26 20:35:43 stpohle Exp $ */
|
|
|
|
/* $Id: sound.c,v 1.2 2003/07/29 23:20:14 stpohle Exp $ */
|
|
|
|
/* sound */
|
|
|
|
/* sound */
|
|
|
|
|
|
|
|
|
|
|
|
#include "sound.h"
|
|
|
|
#include "sound.h"
|
|
|
@ -100,12 +100,9 @@ snd_load (char *tilesetname)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* try loading the music from the tileset or the default */
|
|
|
|
/* try loading the music from the tileset or the default */
|
|
|
|
sprintf (fullname, "%s/tileset/%s/music.ogg", bman.datapath, tilesetname);
|
|
|
|
sprintf (fullname, "%s/music/bc-by-digital_d.xm", bman.datapath);
|
|
|
|
if ((snd.music = Mix_LoadMUS (fullname)) == NULL) {
|
|
|
|
if ((snd.music = Mix_LoadMUS (fullname)) == NULL)
|
|
|
|
sprintf (fullname, "%s/tileset/default/music.ogg", bman.datapath);
|
|
|
|
d_printf ("Couldn't load %s: %s\n", fullname, SDL_GetError ());
|
|
|
|
if ((snd.music = Mix_LoadMUS (fullname)) == NULL)
|
|
|
|
|
|
|
|
d_printf ("Couldn't load %s: %s\n", fullname, SDL_GetError ());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|