Skip to content

Commit

Permalink
Remove unneeded name buffer in S_Play_f.
Browse files Browse the repository at this point in the history
  • Loading branch information
zturtleman committed Nov 18, 2012
1 parent d9bea49 commit 6c1045a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions code/client/snd_main.c
Expand Up @@ -402,7 +402,6 @@ void S_Play_f( void ) {
int i;
int c;
sfxHandle_t h;
char name[MAX_TOKEN_CHARS];

if( !si.RegisterSound || !si.StartLocalSound ) {
return;
Expand All @@ -416,8 +415,7 @@ void S_Play_f( void ) {
}

for( i = 1; i < c; i++ ) {
Q_strncpyz( name, Cmd_Argv(i), sizeof(name) );
h = si.RegisterSound( name, qfalse );
h = si.RegisterSound( Cmd_Argv(i), qfalse );

if( h ) {
si.StartLocalSound( h, CHAN_LOCAL_SOUND );
Expand Down

0 comments on commit 6c1045a

Please sign in to comment.