mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-08 21:31:46 +08:00
engine: convert Cbuf_AddText with va to Cbuf_AddTextf
This commit is contained in:
@@ -394,7 +394,7 @@ void SV_HazardCourse_f( void )
|
||||
// special case for Gunman Chronicles: playing avi-file
|
||||
if( FS_FileExists( va( "media/%s.avi", GI->trainmap ), false ))
|
||||
{
|
||||
Cbuf_AddText( va( "wait; movie %s\n", GI->trainmap ));
|
||||
Cbuf_AddTextf( "wait; movie %s\n", GI->trainmap );
|
||||
Host_EndGame( true, DEFAULT_ENDGAME_MESSAGE );
|
||||
}
|
||||
else COM_NewGame( GI->trainmap );
|
||||
|
||||
@@ -159,7 +159,7 @@ static void SV_BanID_f( void )
|
||||
cidfilter = filter;
|
||||
|
||||
if( cl && !Q_stricmp( Cmd_Argv( Cmd_Argc() - 1 ), "kick" ))
|
||||
Cbuf_AddText( va( "kick #%d \"Kicked and banned\"\n", cl->userid ));
|
||||
Cbuf_AddTextf( "kick #%d \"Kicked and banned\"\n", cl->userid );
|
||||
}
|
||||
|
||||
static void SV_ListID_f( void )
|
||||
|
||||
@@ -628,7 +628,7 @@ void SV_ActivateServer( int runPhysics )
|
||||
const char *cycle = Cvar_VariableString( "mapchangecfgfile" );
|
||||
|
||||
if( COM_CheckString( cycle ))
|
||||
Cbuf_AddText( va( "exec %s\n", cycle ));
|
||||
Cbuf_AddTextf( "exec %s\n", cycle );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1739,7 +1739,7 @@ static qboolean SaveGameSlot( const char *pSaveName, const char *pSaveComment )
|
||||
}
|
||||
|
||||
// pending the preview image for savegame
|
||||
Cbuf_AddText( va( "saveshot \"%s\"\n", pSaveName ));
|
||||
Cbuf_AddTextf( "saveshot \"%s\"\n", pSaveName );
|
||||
Con_Printf( "Saving game to %s...\n", name );
|
||||
|
||||
version = SAVEGAME_VERSION;
|
||||
|
||||
Reference in New Issue
Block a user