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/sv_init.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/sv_init.c')
-rw-r--r-- | source/sv_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/sv_init.c b/source/sv_init.c index 142d593..5d9fe4e 100644 --- a/source/sv_init.c +++ b/source/sv_init.c @@ -96,7 +96,7 @@ void SV_SpawnServer( const char *server, const char *spawnpoint ) { SV_ClientReset( client ); } - Com_sprintf( string, sizeof( string ), "maps/%s.bsp", server ); + Q_concat( string, sizeof( string ), "maps/", server, ".bsp", NULL ); strcpy( sv.configstrings[CS_MODELS + 1], string ); CM_LoadMap( &sv.cm, string, 0, &checksum ); @@ -342,7 +342,7 @@ void SV_Map (const char *levelstring, qboolean restart) { spawnpoint[0] = 0; } - Com_sprintf( expanded, sizeof( expanded ), "maps/%s.bsp", level ); + Q_concat( expanded, sizeof( expanded ), "maps/", level, ".bsp", NULL ); if( FS_LoadFile( expanded, NULL ) == -1 ) { Com_Printf( "Can't find %s\n", expanded ); return; |