remove a bunch of superfluous formatting calls

From /dev/humancontroller.
This commit is contained in:
Zack Middleton 2012-06-19 14:52:22 +00:00
parent 20c6d1e33f
commit 2db73231eb
6 changed files with 18 additions and 18 deletions

View file

@ -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;
}