summaryrefslogtreecommitdiff
path: root/src/client/snd_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/snd_main.c')
-rw-r--r--src/client/snd_main.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/client/snd_main.c b/src/client/snd_main.c
index 1215e954..22213cc9 100644
--- a/src/client/snd_main.c
+++ b/src/client/snd_main.c
@@ -425,12 +425,9 @@ void S_Play_f( void ) {
i = 1;
while ( i<Cmd_Argc() ) {
- if ( !Q_strrchr(Cmd_Argv(i), '.') ) {
- Com_sprintf( name, sizeof(name), "%s.wav", Cmd_Argv(1) );
- } else {
- Q_strncpyz( name, Cmd_Argv(i), sizeof(name) );
- }
+ Q_strncpyz( name, Cmd_Argv(i), sizeof(name) );
h = si.RegisterSound( name, qfalse );
+
if( h ) {
si.StartLocalSound( h, CHAN_LOCAL_SOUND );
}