From 3ee1476c0180412baa8490bea47f7ab05555cf36 Mon Sep 17 00:00:00 2001 From: Richard Allen Date: Wed, 12 Dec 2012 20:00:54 +0000 Subject: [PATCH] IOQ3 commit 2359 --- reaction/code/client/snd_main.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/reaction/code/client/snd_main.c b/reaction/code/client/snd_main.c index 796e7444..8a1bd69a 100644 --- a/reaction/code/client/snd_main.c +++ b/reaction/code/client/snd_main.c @@ -400,22 +400,28 @@ S_Play_f */ void S_Play_f( void ) { int i; + int c; sfxHandle_t h; - char name[256]; + char name[MAX_TOKEN_CHARS]; if( !si.RegisterSound || !si.StartLocalSound ) { return; } - i = 1; - while ( i [sound filename] [sound filename] ...\n"); + return; + } + + for( i = 1; i < c; i++ ) { Q_strncpyz( name, Cmd_Argv(i), sizeof(name) ); h = si.RegisterSound( name, qfalse ); if( h ) { si.StartLocalSound( h, CHAN_LOCAL_SOUND ); } - i++; } } @@ -438,7 +444,7 @@ void S_Music_f( void ) { } else if ( c == 3 ) { si.StartBackgroundTrack( Cmd_Argv(1), Cmd_Argv(2) ); } else { - Com_Printf ("music [loopfile]\n"); + Com_Printf ("Usage: music [loopfile]\n"); return; }