engine: convert Cbuf_AddText with va to Cbuf_AddTextf

This commit is contained in:
Alibek Omarov
2023-03-13 05:31:27 +03:00
parent b12b2aaf79
commit d667845777
10 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -827,7 +827,7 @@ void Host_Userconfigd_f( void )
for( i = 0; i < t->numfilenames; i++ )
{
Cbuf_AddText( va("exec %s\n", t->filenames[i] ) );
Cbuf_AddTextf( "exec %s\n", t->filenames[i] );
}
Mem_Free( t );
@@ -1221,7 +1221,7 @@ int EXPORT Host_Main( int argc, char **argv, const char *progname, int bChangeGa
Wcon_ShowConsole( false ); // hide console
#endif
// execute startup config and cmdline
Cbuf_AddText( va( "exec %s.rc\n", SI.rcName ));
Cbuf_AddTextf( "exec %s.rc\n", SI.rcName );
Cbuf_Execute();
if( !host.config_executed )
{
@@ -1255,7 +1255,7 @@ int EXPORT Host_Main( int argc, char **argv, const char *progname, int bChangeGa
// execute server.cfg after commandline
// so we have a chance to set servercfgfile
Cbuf_AddText( va( "exec %s\n", Cvar_VariableString( "servercfgfile" )));
Cbuf_AddTextf( "exec %s\n", Cvar_VariableString( "servercfgfile" ));
Cbuf_Execute();
}