summaryrefslogtreecommitdiff
path: root/source/cl_ref.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2007-11-25 20:57:50 +0000
committerAndrey Nazarov <skuller@skuller.net>2007-11-25 20:57:50 +0000
commitb00e7bd024285970dd00cfc75d8e690bfa475501 (patch)
tree22ceeee3027fd4872f5621650557bc8ae4391948 /source/cl_ref.c
parent5eaaac93ad3b0d2777815717059d977912bd96f7 (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/cl_ref.c')
-rw-r--r--source/cl_ref.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/cl_ref.c b/source/cl_ref.c
index 56bd56b..d9e500a 100644
--- a/source/cl_ref.c
+++ b/source/cl_ref.c
@@ -258,8 +258,8 @@ static qboolean CL_LoadRefresh( const char *name ) {
Ref_APISetupCallback( API_REFRESH, &ref );
#else
- Com_sprintf( path, sizeof( path ), "%s" PATH_SEP_STRING "%s" LIBSUFFIX,
- sys_refdir->string, name );
+ Q_concat( path, sizeof( path ), sys_refdir->string, PATH_SEP_STRING,
+ name, LIBSUFFIX, NULL );
entry = Sys_LoadLibrary( path, "moduleEntry", &reflib_library );
if( !entry ) {
Com_WPrintf( "Couldn't load %s\n", name );
@@ -292,6 +292,8 @@ static qboolean CL_LoadRefresh( const char *name ) {
if( !ref.Init( qtrue ) ) {
goto fail;
}
+
+ Sys_FixFPCW();
Com_Printf( "------------------------------------\n" );
@@ -382,7 +384,7 @@ void CL_InitRefresh( void ) {
while( 1 ) {
char buffer[MAX_QPATH];
- Com_sprintf( buffer, sizeof( buffer ), "ref_%s", vid_ref->string );
+ Q_concat( buffer, sizeof( buffer ), "ref_", vid_ref->string, NULL );
if( CL_LoadRefresh( buffer ) ) {
break;
}