diff options
author | Simon Howard | 2007-05-16 14:28:22 +0000 |
---|---|---|
committer | Simon Howard | 2007-05-16 14:28:22 +0000 |
commit | 2a026e12779b77b2aeabb78bdca3ea00e10d478a (patch) | |
tree | 02042c4b81e2cdf52e8426cb1221ca319f8fde7d /src/deh_sound.c | |
parent | 991ef372d4acdf5f2fcae09cef05bfec12ce9b64 (diff) | |
download | chocolate-doom-2a026e12779b77b2aeabb78bdca3ea00e10d478a.tar.gz chocolate-doom-2a026e12779b77b2aeabb78bdca3ea00e10d478a.tar.bz2 chocolate-doom-2a026e12779b77b2aeabb78bdca3ea00e10d478a.zip |
Add FEATURE_SOUND.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 877
Diffstat (limited to 'src/deh_sound.c')
-rw-r--r-- | src/deh_sound.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/deh_sound.c b/src/deh_sound.c index 9f99384b..7068d94a 100644 --- a/src/deh_sound.c +++ b/src/deh_sound.c @@ -27,6 +27,7 @@ #include <stdlib.h> #include "doomdef.h" +#include "doomfeatures.h" #include "doomtype.h" #include "deh_defs.h" #include "deh_main.h" @@ -48,7 +49,6 @@ DEH_END_MAPPING static void *DEH_SoundStart(deh_context_t *context, char *line) { int sound_number = 0; - sfxinfo_t *sfx; if (sscanf(line, "Sound %i", &sound_number) != 1) { @@ -67,10 +67,16 @@ static void *DEH_SoundStart(deh_context_t *context, char *line) DEH_Warning(context, "Attempt to modify SFX %i. This will problems " "in Vanilla dehacked.", sound_number); } + +#ifdef FEATURE_SOUND - sfx = &S_sfx[sound_number]; - - return sfx; + return &S_sfx[sound_number]; + +#else + + return NULL; + +#endif } static void DEH_SoundParseLine(deh_context_t *context, char *line, void *tag) |