remove a bunch of superfluous formatting calls
From /dev/humancontroller.
This commit is contained in:
parent
20c6d1e33f
commit
2db73231eb
6 changed files with 18 additions and 18 deletions
|
@ -110,11 +110,11 @@ CheatsOk
|
|||
*/
|
||||
qboolean CheatsOk( gentity_t *ent ) {
|
||||
if ( !g_cheats.integer ) {
|
||||
trap_SendServerCommand( ent-g_entities, va("print \"Cheats are not enabled on this server.\n\""));
|
||||
trap_SendServerCommand( ent-g_entities, "print \"Cheats are not enabled on this server.\n\"");
|
||||
return qfalse;
|
||||
}
|
||||
if ( ent->health <= 0 ) {
|
||||
trap_SendServerCommand( ent-g_entities, va("print \"You must be alive to use this command.\n\""));
|
||||
trap_SendServerCommand( ent-g_entities, "print \"You must be alive to use this command.\n\"");
|
||||
return qfalse;
|
||||
}
|
||||
return qtrue;
|
||||
|
@ -1536,11 +1536,11 @@ void Cmd_SetViewpos_f( gentity_t *ent ) {
|
|||
int i;
|
||||
|
||||
if ( !g_cheats.integer ) {
|
||||
trap_SendServerCommand( ent-g_entities, va("print \"Cheats are not enabled on this server.\n\""));
|
||||
trap_SendServerCommand( ent-g_entities, "print \"Cheats are not enabled on this server.\n\"");
|
||||
return;
|
||||
}
|
||||
if ( trap_Argc() != 5 ) {
|
||||
trap_SendServerCommand( ent-g_entities, va("print \"usage: setviewpos x y z yaw\n\""));
|
||||
trap_SendServerCommand( ent-g_entities, "print \"usage: setviewpos x y z yaw\n\"");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -545,7 +545,7 @@ void QDECL Com_Error ( int level, const char *error, ... ) {
|
|||
Q_vsnprintf (text, sizeof(text), error, argptr);
|
||||
va_end (argptr);
|
||||
|
||||
G_Error( "%s", text);
|
||||
trap_Error( text );
|
||||
}
|
||||
|
||||
void QDECL Com_Printf( const char *msg, ... ) {
|
||||
|
@ -556,7 +556,7 @@ void QDECL Com_Printf( const char *msg, ... ) {
|
|||
Q_vsnprintf (text, sizeof(text), msg, argptr);
|
||||
va_end (argptr);
|
||||
|
||||
G_Printf ("%s", text);
|
||||
trap_Print( text );
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue