shithub: choc

Download patch

ref: c04e3c8be21e3819e2c75f2b6154728c4dd0a72b
parent: c068da2d89abf29955e9e2698c94984fd726784e
author: Simon Howard <[email protected]>
date: Wed Sep 24 15:04:02 EDT 2008

Add missing sound variables, I_Update -> I_FinishUpdate.

Subversion-branch: /branches/raven-branch
Subversion-revision: 1274

--- a/src/heretic/d_main.c
+++ b/src/heretic/d_main.c
@@ -52,6 +52,7 @@
 skill_t startskill;
 int startepisode;
 int startmap;
+int UpdateState;
 boolean autostart;
 extern boolean automapactive;
 
@@ -184,7 +185,7 @@
     NetUpdate();
 
     // Flush buffered stuff to screen
-    I_Update();
+    I_FinishUpdate();
 }
 
 //---------------------------------------------------------------------------
--- a/src/heretic/s_sound.c
+++ b/src/heretic/s_sound.c
@@ -57,9 +57,9 @@
 
 extern int snd_DesiredMusicDevice;
 extern int snd_DesiredSfxDevice;
-extern int snd_MaxVolume;
-extern int snd_MusicVolume;
-extern int snd_Channels;
+int snd_MaxVolume;
+int snd_MusicVolume;
+int snd_Channels;
 
 extern int startepisode;
 extern int startmap;
@@ -566,12 +566,8 @@
 
 void S_ShutDown(void)
 {
-    extern int tsm_ID;
-    if (tsm_ID != -1)
-    {
-        I_StopSong();
-        I_UnRegisterSong(rs);
-        I_ShutdownSound();
-    }
+    I_StopSong();
+    I_UnRegisterSong(rs);
+    I_ShutdownSound();
 }