summaryrefslogtreecommitdiff
path: root/src/i_sound.c
diff options
context:
space:
mode:
authorSimon Howard2006-01-22 21:20:20 +0000
committerSimon Howard2006-01-22 21:20:20 +0000
commitb11657eafe8b4bb60b6d91e46ae77a1966e8d79a (patch)
tree81a8a53f56538a92379f273a0c1523811fccb862 /src/i_sound.c
parent5bbd401a5552722fb706eec2add6c5bb3a91f2bd (diff)
downloadchocolate-doom-b11657eafe8b4bb60b6d91e46ae77a1966e8d79a.tar.gz
chocolate-doom-b11657eafe8b4bb60b6d91e46ae77a1966e8d79a.tar.bz2
chocolate-doom-b11657eafe8b4bb60b6d91e46ae77a1966e8d79a.zip
Dehacked string replacements for sound and music lump names
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 318
Diffstat (limited to 'src/i_sound.c')
-rw-r--r--src/i_sound.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/i_sound.c b/src/i_sound.c
index 18cc0975..37e3ac9e 100644
--- a/src/i_sound.c
+++ b/src/i_sound.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: i_sound.c 280 2006-01-10 22:14:13Z fraggle $
+// $Id: i_sound.c 318 2006-01-22 21:20:20Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -22,6 +22,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.26 2006/01/22 21:20:20 fraggle
+// Dehacked string replacements for sound and music lump names
+//
// Revision 1.25 2006/01/10 22:14:13 fraggle
// Shut up compiler warnings
//
@@ -122,7 +125,7 @@
//-----------------------------------------------------------------------------
static const char
-rcsid[] = "$Id: i_sound.c 280 2006-01-10 22:14:13Z fraggle $";
+rcsid[] = "$Id: i_sound.c 318 2006-01-22 21:20:20Z fraggle $";
#include <stdio.h>
#include <stdlib.h>
@@ -138,6 +141,7 @@ rcsid[] = "$Id: i_sound.c 280 2006-01-10 22:14:13Z fraggle $";
#include "i_system.h"
#include "i_sound.h"
+#include "deh_main.h"
#include "m_argv.h"
#include "m_misc.h"
#include "m_swap.h"
@@ -353,7 +357,7 @@ void I_SetSfxVolume(int volume)
int I_GetSfxLumpNum(sfxinfo_t* sfx)
{
char namebuf[9];
- sprintf(namebuf, "ds%s", sfx->name);
+ sprintf(namebuf, "ds%s", DEH_String(sfx->name));
return W_GetNumForName(namebuf);
}
//