OpenAudio(&audio);
+ AllocSoundArray(NUM_SOUNDS);
+
for(i=0; i<NUM_SOUNDS; i++)
{
- Sound[i].name = sound_name[i];
-
- if (!LoadSound(&Sound[i]))
+ if (!LoadSound(i, sound_name[i]))
{
audio.sound_available = FALSE;
audio.loops_available = FALSE;
+ audio.sound_enabled = FALSE;
+
return;
}
}
if (!pix[pos]->drawable)
Error(ERR_EXIT, "cannot get graphics for '%s'", pic->picture_filename);
+ pix[pos]->gc = window->gc;
+
#if 0
/* setting pix_masked[] to pix[] allows BlitBitmapMasked() to always
use pix_masked[], although they are the same when not using SDL */