[quake3-commits] r2360 - trunk/code/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Nov 18 18:30:26 EST 2012


Author: ztm
Date: 2012-11-18 18:30:26 -0500 (Sun, 18 Nov 2012)
New Revision: 2360

Modified:
   trunk/code/client/snd_main.c
Log:
Remove unneeded name buffer in S_Play_f.

Modified: trunk/code/client/snd_main.c
===================================================================
--- trunk/code/client/snd_main.c	2012-11-18 23:16:13 UTC (rev 2359)
+++ trunk/code/client/snd_main.c	2012-11-18 23:30:26 UTC (rev 2360)
@@ -402,7 +402,6 @@
 	int 		i;
 	int			c;
 	sfxHandle_t	h;
-	char		name[MAX_TOKEN_CHARS];
 
 	if( !si.RegisterSound || !si.StartLocalSound ) {
 		return;
@@ -416,8 +415,7 @@
 	}
 
 	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 );



More information about the quake3-commits mailing list