fixed name of dpavi.wav file to work correctly with FS_Open (this is in commented...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 7 Apr 2003 01:44:56 +0000 (01:44 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 7 Apr 2003 01:44:56 +0000 (01:44 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2926 d7cf8633-e32d-0410-b094-e92efae38249

snd_mix.c

index 790642c..35b9dd5 100644 (file)
--- a/snd_mix.c
+++ b/snd_mix.c
@@ -40,8 +40,7 @@ void S_CaptureAVISound(portable_samplepair_t *buf, int length)
        {
                if (cl_avidemo_soundfile == NULL)
                {
-                       sprintf (filename, "%s/dpavi.wav", com_gamedir);
-                       cl_avidemo_soundfile = FS_Open (filename, "wb", false);
+                       cl_avidemo_soundfile = FS_Open ("dpavi.wav", "wb", false);
                        memset(out, 0, 44);
                        fwrite(out, 1, 44, cl_avidemo_soundfile);
                        // header will be filled out when file is closed