shithub: choc

Download patch

ref: 80ef754afea340ed4f06c780b3a025f23538db04
parent: a8e1c601bc4807f64e716d5813c7f2c26fa92e71
author: Simon Howard <[email protected]>
date: Thu Sep 25 14:55:24 EDT 2008

Move GetSfxLumpName to shut up warnings

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

--- a/src/i_sdlsound.c
+++ b/src/i_sdlsound.c
@@ -437,6 +437,28 @@
     return true;
 }
 
+static void GetSfxLumpName(sfxinfo_t *sfx, char *buf)
+{
+    // Linked sfx lumps? Get the lump number for the sound linked to.
+
+    if (sfx->link != NULL)
+    {
+        sfx = sfx->link;
+    }
+
+    // Doom adds a DS* prefix to sound lumps; Heretic and Hexen don't
+    // do this.
+
+    if (use_sfx_prefix)
+    {
+        sprintf(buf, "ds%s", DEH_String(sfx->name));
+    }
+    else
+    {
+        strcpy(buf, DEH_String(sfx->name));
+    }
+}
+
 #ifdef HAVE_LIBSAMPLERATE
 
 // Preload all the sound effects - stops nasty ingame freezes
@@ -511,28 +533,6 @@
     }
 
     return true;
-}
-
-static void GetSfxLumpName(sfxinfo_t *sfx, char *buf)
-{
-    // Linked sfx lumps? Get the lump number for the sound linked to.
-
-    if (sfx->link != NULL)
-    {
-        sfx = sfx->link;
-    }
-
-    // Doom adds a DS* prefix to sound lumps; Heretic and Hexen don't
-    // do this.
-
-    if (use_sfx_prefix)
-    {
-        sprintf(buf, "ds%s", DEH_String(sfx->name));
-    }
-    else
-    {
-        strcpy(buf, DEH_String(sfx->name));
-    }
 }
 
 //