Let codec loader decide which extension to give to extensionless filenames
This commit is contained in:
parent
6a203bc8e9
commit
3551b0fa3c
1 changed files with 2 additions and 5 deletions
|
@ -410,12 +410,9 @@ void S_Play_f( void ) {
|
||||||
|
|
||||||
i = 1;
|
i = 1;
|
||||||
while ( i<Cmd_Argc() ) {
|
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 );
|
h = si.RegisterSound( name, qfalse );
|
||||||
|
|
||||||
if( h ) {
|
if( h ) {
|
||||||
si.StartLocalSound( h, CHAN_LOCAL_SOUND );
|
si.StartLocalSound( h, CHAN_LOCAL_SOUND );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue