foxygit / doom Log in
commit e860d4cdc79c58afd44c34079810b6aaaa575434
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Sun May 20 02:20:22 2007 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Sun May 20 02:20:22 2007 +0000

    Initialise sound before network setup to fix bug with sound effects not
    playing when playing netgames on Windows (text mode waiting screen
    shutdown causes sound not to start up?)

    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 881
---
 src/d_main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/d_main.c b/src/d_main.c
index b27f833e..65cb6bb9 100644
--- a/src/d_main.c
+++ b/src/d_main.c
@@ -1402,14 +1402,14 @@ void D_DoomMain (void)
     NET_Init ();
 #endif

+    printf (DEH_String("S_Init: Setting up sound.\n"));
+    S_Init (sfxVolume * 8, musicVolume * 8);
+
     printf (DEH_String("D_CheckNetGame: Checking network game status.\n"));
     D_CheckNetGame ();

     PrintGameVersion();

-    printf (DEH_String("S_Init: Setting up sound.\n"));
-    S_Init (sfxVolume * 8, musicVolume * 8);
-
     printf (DEH_String("HU_Init: Setting up heads up display.\n"));
     HU_Init ();