mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-12 23:44:21 +00:00
Remove unneeded name buffer in S_Play_f.
This commit is contained in:
parent
d9bea4977b
commit
6c1045a003
1 changed files with 1 additions and 3 deletions
|
@ -402,7 +402,6 @@ void S_Play_f( void ) {
|
||||||
int i;
|
int i;
|
||||||
int c;
|
int c;
|
||||||
sfxHandle_t h;
|
sfxHandle_t h;
|
||||||
char name[MAX_TOKEN_CHARS];
|
|
||||||
|
|
||||||
if( !si.RegisterSound || !si.StartLocalSound ) {
|
if( !si.RegisterSound || !si.StartLocalSound ) {
|
||||||
return;
|
return;
|
||||||
|
@ -416,8 +415,7 @@ void S_Play_f( void ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for( i = 1; i < c; i++ ) {
|
for( i = 1; i < c; i++ ) {
|
||||||
Q_strncpyz( name, Cmd_Argv(i), sizeof(name) );
|
h = si.RegisterSound( Cmd_Argv(i), qfalse );
|
||||||
h = si.RegisterSound( name, qfalse );
|
|
||||||
|
|
||||||
if( h ) {
|
if( h ) {
|
||||||
si.StartLocalSound( h, CHAN_LOCAL_SOUND );
|
si.StartLocalSound( h, CHAN_LOCAL_SOUND );
|
||||||
|
|
Loading…
Reference in a new issue