diff options
author | Andrey Nazarov <skuller@skuller.net> | 2007-11-25 20:57:50 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2007-11-25 20:57:50 +0000 |
commit | b00e7bd024285970dd00cfc75d8e690bfa475501 (patch) | |
tree | 22ceeee3027fd4872f5621650557bc8ae4391948 /source/snd_main.c | |
parent | 5eaaac93ad3b0d2777815717059d977912bd96f7 (diff) |
Changed Com_sprintf --> Q_concat in quite some cases.
Make sure WAVE sound driver is built by default.
Added --disable-wave option to `configure'.
Command line history is now remembered between sessions.
ALT+Space refreshes all servers in Server Browser.
Handle command line agruments like original Q2 engine did.
Diffstat (limited to 'source/snd_main.c')
-rw-r--r-- | source/snd_main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/snd_main.c b/source/snd_main.c index 4418b46..6fe6f5a 100644 --- a/source/snd_main.c +++ b/source/snd_main.c @@ -148,7 +148,7 @@ static void S_Play_f( void ) { char name[MAX_QPATH]; if( Cmd_Argc() < 2 ) { - Com_Printf( "Usage: %s <sound1> [sound2] ...\n", Cmd_Argv( 0 ) ); + Com_Printf( "Usage: %s <sound> [...]\n", Cmd_Argv( 0 ) ); return; } @@ -716,15 +716,15 @@ static sfx_t *S_RegisterSexedSound( entity_state_t *ent, const char *base ) { strcpy( model, "male" ); // see if we already know of the model specific sound - Com_sprintf( buffer, sizeof( buffer ), - "#players/%s/%s", model, base + 1 ); + Q_concat( buffer, sizeof( buffer ), + "#players/", model, "/", base + 1, NULL ); sfx = S_FindName( buffer ); // see if it exists if( !S_LoadSound( sfx ) ) { // no, revert to the male sound in the pak0.pak - Com_sprintf( buffer, sizeof( buffer ), - "player/male/%s", base + 1 ); + Q_concat( buffer, sizeof( buffer ), + "player/male/", base + 1, NULL ); sfx->truename = Z_TagCopyString( buffer, TAG_SOUND ); } |