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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Apr 18 14:55:58 EDT 2011


Author: thilo
Date: 2011-04-18 14:55:58 -0400 (Mon, 18 Apr 2011)
New Revision: 1945

Modified:
   trunk/code/client/snd_main.c
Log:
Let codec loader decide which extension to give to extensionless filenames


Modified: trunk/code/client/snd_main.c
===================================================================
--- trunk/code/client/snd_main.c	2011-04-18 16:06:10 UTC (rev 1944)
+++ trunk/code/client/snd_main.c	2011-04-18 18:55:58 UTC (rev 1945)
@@ -410,12 +410,9 @@
 
 	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 );
 		}



More information about the quake3-commits mailing list