shithub: choc

Download patch

ref: 0d1fcc1bb8650ee03a547d5a98270e51ff685089
parent: fb5f3408beef89872cbc2c51b5ce5e594e119031
author: Simon Howard <[email protected]>
date: Sat Sep 9 17:44:51 EDT 2006

Fix the -nomusic parameter.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 603

--- a/src/i_sound.c
+++ b/src/i_sound.c
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*- 
 //-----------------------------------------------------------------------------
 //
-// $Id: i_sound.c 568 2006-07-28 19:13:13Z fraggle $
+// $Id: i_sound.c 603 2006-09-09 21:44:51Z fraggle $
 //
 // Copyright(C) 1993-1996 Id Software, Inc.
 // Copyright(C) 2005 Simon Howard
@@ -128,7 +128,7 @@
 //-----------------------------------------------------------------------------
 
 static const char
-rcsid[] = "$Id: i_sound.c 568 2006-07-28 19:13:13Z fraggle $";
+rcsid[] = "$Id: i_sound.c 603 2006-09-09 21:44:51Z fraggle $";
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -559,12 +559,11 @@
     
     SDL_PauseAudio(0);
 
-    music_initialised = true;
+    if (M_CheckParm("-nomusic") == 0)
+        music_initialised = true;
 
-    if (M_CheckParm("-nosound") || M_CheckParm("-nosfx"))
-        return;
-
-    sound_initialised = true;
+    if (M_CheckParm("-nosfx") == 0)
+        sound_initialised = true;
 }